User Tools

Site Tools


cobjects:basic_types

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cobjects:basic_types [2011-07-08 14:17]
edheldil created
cobjects:basic_types [2011-07-08 14:25] (current)
edheldil
Line 6: Line 6:
 | Int     ​| ​   4 | Integer | | Int     ​| ​   4 | Integer |
 | Float32 |    4 | Floating point number | | Float32 |    4 | Floating point number |
 +| CID     | 8 | two integers, the first one is FIXME: always? 0x41d80000\\ They somehow serve to distinguish between CObject classes |
 | String ​ | 4 + string length | Pascal-style string (Integer length, char0, char1, char2) | | String ​ | 4 + string length | Pascal-style string (Integer length, char0, char1, char2) |
 | StringZ | 1 + string length | C-style string (char0, char1 ... charN, \0)\\ Not a native type, probably used in foreign objects only | | StringZ | 1 + string length | C-style string (char0, char1 ... charN, \0)\\ Not a native type, probably used in foreign objects only |
 +| Array   | 4+sum(sizeof(obj0..N) | Integer # of items, then the actual items.\\ Note that CObject items have variable size |
 +| Point   | | |
 | Poly2D ​ | | | | Poly2D ​ | | |
-CID     two integersthe first one is FIXME: always? 0x41d80000\\ They somehow serve to distinguish between CObject classes ​| +CObject ​variable ​CObject-derived objectsusually starting with CID. \\ NULL pointers ​to CObjects are encoded as Integer "​0" ​|
  
cobjects/basic_types.txt · Last modified: 2011-07-08 14:25 by edheldil