SimpleStreamSerializerT.transmitData

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

  1. size_t transmitData(Stream stream, void* data, size_t bytes)
  2. size_t transmitData(Stream stream, void[] data)
    struct SimpleStreamSerializerT(bool SerializeDynArrays = true)
    static
    size_t
    transmitData
    (
    Stream : IOStream
    )
    (
    Stream stream
    ,
    void[] data
    )

Parameters

Stream

type of stream; must be either InputStream or OutputStream

stream Stream

stream to read from / write to

data void[]

pointer to data buffer

Return Value

Type: size_t

number of bytes transmitted

Throws

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

Meta