Enfusion Script API
|
Snapshot serializer utility. More...
Public Member Functions | |
proto native int | Seek (int posInBytes) |
Sets current position within the buffer with byte precision. | |
Public Member Functions inherited from SSnapSerializerBase | |
proto void | SerializeBytes (inout void data, int sizeInBytes) |
Serializes the data pointer. The size is the amount of bytes serialized. | |
void | SerializeBool (inout bool val) |
void | SerializeInt (inout int val) |
void | SerializeFloat (inout float val) |
void | SerializeVector (inout vector val) |
proto void | SerializeString (inout string val) |
void | EncodeBool (ScriptBitSerializer packet) |
void | DecodeBool (ScriptBitSerializer packet) |
void | EncodeInt (ScriptBitSerializer packet) |
void | DecodeInt (ScriptBitSerializer packet) |
void | EncodeFloat (ScriptBitSerializer packet) |
void | DecodeFloat (ScriptBitSerializer packet) |
void | EncodeVector (ScriptBitSerializer packet) |
void | DecodeVector (ScriptBitSerializer packet) |
proto void | EncodeString (ScriptBitSerializer packet) |
proto void | DecodeString (ScriptBitSerializer packet) |
proto native bool | Serialize (ScriptBitSerializer serializer, int sizeInBytes) |
Serialization of the BitSerializer type. | |
proto native int | Tell () |
Returns the current position within the buffer with byte precision. | |
proto bool | Compare (void data, int sizeInBytes) |
Compares the insides of the buffer with provided pointer (bitwise). | |
bool | CompareBool (bool val) |
bool | CompareInt (int val) |
bool | CompareFloat (float val) |
bool | CompareVector (vector val) |
proto bool | CompareString (string val) |
proto native bool | CompareSnapshots (SSnapSerializerBase snapshot, int sizeInBytes) |
Compares the contents of two SnapSerialiers. | |
proto bool | CompareStringSnapshots (SSnapSerializerBase snapshot) |
Public Member Functions inherited from Managed | |
proto external ref Managed | Clone () |
Return shallow copy of object, or null if it is not allowed (not public constructor) | |
Static Public Member Functions | |
static proto ref SSnapSerializer | MakeWriter (SSnapshot snap) |
Creates a write-only serializer for given snapshot. | |
static proto ref SSnapSerializer | MakeReader (SSnapshot snap) |
Creates a read-only serializer for given snapshot. | |
Snapshot serializer utility.
|
static |
Creates a read-only serializer for given snapshot.
|
static |
Creates a write-only serializer for given snapshot.
Sets current position within the buffer with byte precision.