Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
SSnapSerializer Interface Reference

Snapshot serializer utility. More...

Inheritance diagram for SSnapSerializer:
[legend]

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.
 

Detailed Description

Snapshot serializer utility.

Member Function Documentation

◆ MakeReader()

static proto ref SSnapSerializer SSnapSerializer.MakeReader ( SSnapshot  snap)
static

Creates a read-only serializer for given snapshot.

◆ MakeWriter()

static proto ref SSnapSerializer SSnapSerializer.MakeWriter ( SSnapshot  snap)
static

Creates a write-only serializer for given snapshot.

◆ Seek()

proto native int SSnapSerializer.Seek ( int  posInBytes)

Sets current position within the buffer with byte precision.


The documentation for this interface was generated from the following file: