zStatus zSerializer_Construct(zSerializer* serializer, zSerializerReadCallback read, zSerializerWriteCallback write, zHandle context);
|
Parameters |
Description |
|
zSerializer* serializer |
Destination for the constructed object handle. |
|
zSerializerReadCallback read |
A callback function that will be used by the zSerializer object to read bytes, or zNULL if reading is not required. |
|
zSerializerWriteCallback write |
A callback function that will be used by the zSerializer object to write bytes, or zNULL if writing is not required. |
|
zHandle context |
A context object that will be passed to the read and/or write callback functions (typically a zTcpClient or zUdpClient handle). |
Constructs a zSerializer object that can be used to write/read values as little-endian-formatted bytes.
zSerializer.h