Stream

Abstract stream of data to read and write tags.

Constructors

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

Members

Functions

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.
readDouble
double readDouble()
Undocumented in source.
readFloat
float readFloat()
Undocumented in source.
readInt
int readInt()
Undocumented in source.
readLength
size_t readLength()
Undocumented in source.
readLong
long readLong()
Undocumented in source.
readNamelessTag
Tag readNamelessTag()

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

readShort
short readShort()
Undocumented in source.
readString
string readString()
Undocumented in source.
readTag
Tag readTag()

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

writeByte
void writeByte(byte value)
Undocumented in source.
writeDouble
void writeDouble(double value)
Undocumented in source.
writeFloat
void writeFloat(float value)
Undocumented in source.
writeInt
void writeInt(int value)
Undocumented in source.
writeLength
void writeLength(size_t value)
Undocumented in source.
writeLong
void writeLong(long value)
Undocumented in source.
writeNamelessTag
void writeNamelessTag(Tag tag)

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

writeShort
void writeShort(short value)
Undocumented in source.
writeString
void writeString(string value)
Undocumented in source.
writeTag
void writeTag(Tag tag)

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

Properties

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.

Variables

buffer
Buffer buffer;
Undocumented in source.

Meta