ReadableStream.get

Gets data of the specified type T off the stream. The byte order of the T on the stream must be specified unless it is irrelevant (e.g. single byte entries).

// get an int out of a big endian stream
int i = stream.get!int(ByteOrder.bigEndian);

// get i bytes off the stream
ubyte[] data = stream.get!(ubyte[])(i);
  1. T get(ByteOrder byteOrder, string file, size_t line)
  2. T get(size_t length, ByteOrder elementByteOrder, string file, size_t line)
  3. T get(bool delegate(E e) isTerminatingSentinel, ByteOrder elementByteOrder, string file, size_t line)
    class ReadableStream
    final
    T
    get
    (
    T : E[]
    E
    )
    (
    scope bool delegate
    (
    E e
    )
    isTerminatingSentinel
    ,,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )

Meta