ClassicStream

Classic stream implementation where every number is read as either big or little endian. String's length is an unsigned short and other array's lengths are unigned integers.

Constructors

this
this(Buffer buffer)
Undocumented in source.
this
this(ubyte[] buffer)
Undocumented in source.
this
this()
Undocumented in source.

Members

Functions

readLength
size_t readLength()
Undocumented in source. Be warned that the author may not have intended to support it.
readString
string readString()
Undocumented in source. Be warned that the author may not have intended to support it.
readStringLength
size_t readStringLength()
Undocumented in source. Be warned that the author may not have intended to support it.
writeLength
void writeLength(size_t value)
Undocumented in source. Be warned that the author may not have intended to support it.
writeString
void writeString(string value)
Undocumented in source. Be warned that the author may not have intended to support it.
writeStringLength
void writeStringLength(size_t value)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin Impl!byte
Undocumented in source.
__anonymous
mixin Impl!short
Undocumented in source.
__anonymous
mixin Impl!int
Undocumented in source.
__anonymous
mixin Impl!long
Undocumented in source.
__anonymous
mixin Impl!float
Undocumented in source.
__anonymous
mixin Impl!double
Undocumented in source.

Inherited Members

From Stream

buffer
Buffer buffer;
Undocumented in source.
data
ubyte[] data [@property getter]

Gets the stream's data as an array of bytes.

data
ubyte[] data [@property setter]

Sets the stream's data.

writeNamelessTag
void writeNamelessTag(Tag tag)

Writes a tag without a name (id and body only).

writeTag
void writeTag(Tag tag)

Writes a full tag (id, name and body).

writeByte
void writeByte(byte value)
Undocumented in source.
writeShort
void writeShort(short value)
Undocumented in source.
writeInt
void writeInt(int value)
Undocumented in source.
writeLong
void writeLong(long value)
Undocumented in source.
writeFloat
void writeFloat(float value)
Undocumented in source.
writeDouble
void writeDouble(double value)
Undocumented in source.
writeString
void writeString(string value)
Undocumented in source.
writeLength
void writeLength(size_t value)
Undocumented in source.
readNamelessTag
Tag readNamelessTag()

Reads a tag without a name (id and body only).

readTag
Tag readTag()

Reads a full tag (id, name and body).

decodeTagImpl
T decodeTagImpl(T tag)
Undocumented in source. Be warned that the author may not have intended to support it.
readByte
byte readByte()
Undocumented in source.
readShort
short readShort()
Undocumented in source.
readInt
int readInt()
Undocumented in source.
readLong
long readLong()
Undocumented in source.
readFloat
float readFloat()
Undocumented in source.
readDouble
double readDouble()
Undocumented in source.
readString
string readString()
Undocumented in source.
readLength
size_t readLength()
Undocumented in source.

Meta