PHPSerializer

Members

Functions

close
void close(ubyte[] output, char[] name)

Called at the end of struct serialization

closeStruct
void closeStruct(ubyte[] output, char[] name)

Called after a sub-struct is serialized.

closeStructArray
void closeStructArray(ubyte[] output, char[] name, T[] array)

Called after a struct array is serialized.

open
void open(ubyte[] output, char[] name)

Called at the start of struct serialization - outputs the name of the top-level object.

openStruct
void openStruct(ubyte[] output, char[] name)

Called before a sub-struct is serialized.

openStructArray
void openStructArray(ubyte[] output, char[] name, T[] array)

Called before a struct array is serialized.

serialize
void serialize(ubyte[] output, T item)

Convenience method to serialize a struct.

serialize
void serialize(ubyte[] output, T item, char[] name)

Appends a named item to the output buffer. Usually item is taken as it is without any conversion.

serializeArray
void serializeArray(ubyte[] output, char[] name, T[] array)

Appends a named array to the output buffer. The length of the array is written as uint, so arrays longer than uint.max can't be used. This is done because php doesn't support ulongs (only longs)

serializeStaticArray
void serializeStaticArray(ubyte[] output, char[] name, T[] array)

Appends a named array to the output buffer. The length of the array is written as uint, so arrays longer than uint.max can't be used. This is done because php doesn't support ulongs (only longs)

Meta