SimpleStreamSerializerT

Simple serializer struct - just a namespace, all methods are static.

Members

Static functions

read
size_t read(InputStream input, T data)

Reads something from an input stream. Single elements are read straight from the input stream, while array types have their length read, followed by each element.

readData
size_t readData(InputStream input, void* data, size_t bytes)

Reads data from input, populating the data buffer to its entirety.

readData
size_t readData(InputStream input, void[] data)

Reads data from input, populating the data buffer to its entirety.

transmit
size_t transmit(Stream stream, T data)

Reads/writes something from/to an io stream. Single elements are transmitted straight to the stream, while array types have their length transmitted, followed by each element.

transmitArrayData
size_t transmitArrayData(Stream stream, T array)

Reads/writes the content of array from/to stream, populating array to its entirety.

transmitData
size_t transmitData(Stream stream, void* data, size_t bytes)

Reads/writes data from/to an io stream, populating/consuming data[0 .. bytes].

transmitData
size_t transmitData(Stream stream, void[] data)

Reads/writes data from/to an io stream, populating/consuming data to its entirety.

write
size_t write(OutputStream output, T data)

Writes something to an output stream. Single elements are written straight to the output stream, while array types have their length written, followed by each element.

writeData
size_t writeData(OutputStream output, void* data, size_t bytes)

Writes data to output, consuming the data buffer content to its entirety.

writeData
size_t writeData(OutputStream output, void[] data)

Writes data to output, consuming the data buffer content to its entirety.

Parameters

SerializeDynArrays

true: dynamic arrays in structs will be serialized false: not.

Meta