Vector types with unit (#27 - #28)

27. Float array with unit

After the byte with value 27, the array types have a 32-bit int indicating the number of values in the array that follows. This int is itself not preceded by a byte indicating it is an int. Then a one-byte unit type follows (see the table above) and a one-byte display type (see Display types). The internal storage of the values that are transmitted after that always use the SI (or standard) unit. As an example: when we send an array of two durations, 2.0 minutes and 2.5 minutes, this is coded as follows (assuming big-endian encoding):

|27|0|0|0|2|25|7|
 |0x40|0x00|0x00|0x00|
 |0x40|0x20|0x00|0x00|

28. Double array with unit

After the byte with value 28, the array types have a 32-bit int indicating the number of values in the array that follows. This int is itself not preceded by a byte indicating it is an int. Then a one-byte unit type follows (see the table above) and a one-byte display type (see Display types). The internal storage of the values that are transmitted after that always use the SI (or standard) unit. As an example: when we send an array of two durations, 21.2 minutes and 21.5 minutes, this is coded as follows (assuming big-endian encoding):

|28|0|0|0|2|25|7|
 |0x40|0x35|0x33|0x33|0x3|0x33|0x33|0x33|
 |0x40|0x35|0x80|0x00|0x00|0x00|0x00|0x00|