wiki:types

TraCI data types

Each TraCI data type has an associated identifier that is generally used in server responses, where the return type may vary. Client commands simply use values without explicitly specifying the data type identifier. Below is a list of data types used by TraCI.

0x07 - ubyte      - 1 byte   - integer numbers (0 - 255)
0x08 - byte       - 1 byte   - integer numbers (-128 - 127)
0x09 - integer    - 4 bytes  - integer numbers (-2^31 - 2^31-1)
0x0a - float      - 4 bytes  - floating point numbers (single precision)
0x0b - double     - 8 bytes  - floating point numbers (double precision)
0x0c - string     - variable - string length n (4 bytes) followed by n 8 bit ASCII characters
0x0e - stringList - variable - number of strings n (4 bytes) followed by n strings
Last modified 14 years ago Last modified on Jan 25, 2010, 8:16:47 PM