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 (or two-byte in case of Money or three-byte in case of the MoneyPerUnit) display type (see Display types). The internal storage of the values that are transmitted after that always use the SI (or standard) unit, except for money where the display unit is used. As an example: when we send an array of two durations, 2.0 minutes and 2.5 minutes, this is coded as follows:

|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 (or two-byte in case of Money or three-byte in case of the MoneyPerUnit) display type (see Display types). The internal storage of the values that are transmitted after that always use the SI (or standard) unit, except for money where the display unit is used. As an example: when we send an array of two durations, 21.2 minutes and 21.5 minutes, this is coded as follows:

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