SimpleStreamSerializerT.read

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.

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

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

Parameters

T

type of data to read

input InputStream

input stream to read from

data T

data to read

Return Value

Type: size_t

number of bytes transmitted

Throws

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

Meta