SimpleStreamSerializerT.transmit

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.

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

struct SimpleStreamSerializerT(bool SerializeDynArrays = true)
static
size_t
transmit
(
Stream : IOStream
T
)
(
Stream stream
,
ref T data
)

Parameters

Stream

type of stream; must be either InputStream or OutputStream

T

type of data to transmit

stream Stream

stream to read from / write to

data T

data to transmit

Return Value

Type: size_t

number of bytes transmitted

Throws

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

Meta