SimpleStreamSerializerT.write

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.

If data is a pointer to a struct or union, it is dereferenced automatically.

struct SimpleStreamSerializerT(bool SerializeDynArrays = true)
static
size_t
write
(
T
)

Parameters

T

type of data to write

output OutputStream

output stream to write to

data T

data to write

Return Value

Type: size_t

number of bytes transmitted

Throws

EofException on End Of Flow condition (note that the exception is always newed)

Meta