StreamReader

A stream reader is a helper class which makes it easier to read data from streams.

Constructors

this
this(Stream stream)

Constructs a new stream reader

Members

Functions

readBE
T readBE()
Undocumented in source. Be warned that the author may not have intended to support it.
readF32BE
float readF32BE()
Undocumented in source. Be warned that the author may not have intended to support it.
readF32LE
float readF32LE()

Reads a float from the stream.

readF64BE
double readF64BE()
Undocumented in source. Be warned that the author may not have intended to support it.
readF64LE
double readF64LE()

Reads a double from the stream.

readI16BE
short readI16BE()
Undocumented in source. Be warned that the author may not have intended to support it.
readI16LE
short readI16LE()

Reads a short from the stream.

readI32BE
int readI32BE()
Undocumented in source. Be warned that the author may not have intended to support it.
readI32LE
int readI32LE()

Reads a int from the stream.

readI64BE
long readI64BE()
Undocumented in source. Be warned that the author may not have intended to support it.
readI64LE
long readI64LE()

Reads a long from the stream.

readI8
byte readI8()

Reads a byte from the stream.

readLE
T readLE()

Reads a value from the stream.

readU16BE
ushort readU16BE()
Undocumented in source. Be warned that the author may not have intended to support it.
readU16LE
ushort readU16LE()

Reads a ushort from the stream.

readU32BE
uint readU32BE()
Undocumented in source. Be warned that the author may not have intended to support it.
readU32LE
uint readU32LE()

Reads a uint from the stream.

readU64BE
ulong readU64BE()
Undocumented in source. Be warned that the author may not have intended to support it.
readU64LE
ulong readU64LE()

Reads a ulong from the stream.

readU8
ubyte readU8()

Reads a ubyte from the stream.

readUTF16
nwstring readUTF16(uint length)

Reads a UTF16 string from the stream.

readUTF16BE
nwstring readUTF16BE(uint length)

Reads a UTF16 string from the stream.

readUTF16LE
nwstring readUTF16LE(uint length)

Reads a UTF16 string from the stream.

readUTF32
ndstring readUTF32(uint length)

Reads a UTF32 string from the stream.

readUTF32BE
ndstring readUTF32BE(uint length)

Reads a UTF32 string from the stream.

readUTF32LE
ndstring readUTF32LE(uint length)

Reads a UTF32 string from the stream.

readUTF8
nstring readUTF8(uint length)

Reads a UTF8 string from the stream.

Properties

stream
Stream stream [@property getter]

The stream this reader is reading from

Meta