-
Notifications
You must be signed in to change notification settings - Fork 1
Marshaling
Geminon edited this page Jun 21, 2014
·
3 revisions
Marshaling is how EVE prepares data to be send over the network. It works by giving the first byte as an op code and then the next however many as the actual data. Some op codes contain the data itself, such as 0x08 for sending a zero integer.
Python Data Type | Hex Op Code | Additional op code |
---|---|---|
None | 0x01 | |
Long long integer (64-bit) | 0x03 | |
Long integer (32-bit) | 0x04 | |
Short integer (16-bit) | 0x05 | |
Char integer (8-bit) | 0x06 | |
Minus one integer (-1) | 0x07 | |
Zero integer (0) | 0x08 | |
One integer (1) | 0x09 | |
Double floating point (64-bit) | 0x0A | |
Zero floating point (0.0) | 0x0B | |
Long string | 0x13 | Length of string in bytes |
Tuple | 0x14 | Number of elements in tuple |