Encoder

Class for encoding data into a memory buffer

Constructors

this
this(ORangeT buf, size_t maxn)
Undocumented in source.

Members

Functions

avail
size_t avail()

Return number of bytes of space remaining in buffer

buffer
ORangeT buffer()
Undocumented in source. Be warned that the author may not have intended to support it.
ensure
void ensure(size_t n)

This interface ensures that at least "N" more bytes are available in the underlying buffer by resizing the buffer (if necessary).

length
size_t length()

Return number of bytes encoded so far

put16
void put16(ushort v)
Undocumented in source. Be warned that the author may not have intended to support it.
put32
void put32(uint v)
Undocumented in source. Be warned that the author may not have intended to support it.
put64
void put64(ulong v)
Undocumented in source. Be warned that the author may not have intended to support it.
put8
void put8(ubyte v)
Undocumented in source. Be warned that the author may not have intended to support it.
putDouble
void putDouble(double v)
Undocumented in source. Be warned that the author may not have intended to support it.
putRaw
void putRaw(T item)

Encodes into the OutputRange a raw object of a type with no indirections, e.g. no arrays, no classes, no pointers, etc.

putRaw
void putRaw(R items)

Encodes into the OutputRange a range of objects in raw form.

reset
void reset(ORangeT buf, size_t maxn)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta