SimpleStreamSerializerT.transmitData

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

  1. size_t transmitData(Stream stream, void* data, size_t bytes)
    struct SimpleStreamSerializerT(bool SerializeDynArrays = true)
    static
    size_t
    transmitData
    (
    Stream : IOStream
    )
    (
    Stream stream
    ,
    void* data
    ,
    size_t bytes
    )
  2. size_t transmitData(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

bytes size_t

data buffer length (bytes)

Return Value

Type: size_t

number of bytes transmitted

Throws

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

Meta