Outbuffer

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.

Constructors

this
this(size_t initialSize)
Undocumented in source.

Members

Functions

bracket
void bracket(char c1, char c2)

Bracket buffer contents with c1 and c2.

dtor
void dtor()
Undocumented in source. Be warned that the author may not have intended to support it.
enlarge
void enlarge(size_t nbytes)
Undocumented in source. Be warned that the author may not have intended to support it.
extractSlice
ubyte[] extractSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()

Returns the number of bytes written.

opSlice
inout(ubyte)[] opSlice(size_t from, size_t to)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
inout(ubyte)[] opSlice()

Ditto

position
void position(size_t offset, size_t nbytes)
Undocumented in source. Be warned that the author may not have intended to support it.
prepend
void prepend(const(void)* b, size_t len)

Inserts bytes at beginning of buffer.

prependBytes
void prependBytes(const(char)* s)

Inserts string at beginning of buffer.

reserve
void reserve(size_t nbytes)

Make sure we have at least nbytes available for writing, allocate more if necessary. This is the inlinable fast path. Prefer enlarge if allocation will always happen.

reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
setsize
void setsize(size_t size)

Set current size of buffer.

write
void write(const(void)[] b)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(const(void)* b, size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(const(char)* s)

Writes a String as a sequence of bytes.

write16
void write16(int v)

Writes a 16 bit value.

write16n
void write16n(int v)

Writes a 16 bit value, no reserve check.

write32
void write32(int v)

Writes a 32 bit int.

write64
void write64(long v)

Writes a 64 bit long.

writeByte
void writeByte(int v)

Writes an 8 bit byte.

writeByten
void writeByten(ubyte v)

Writes an 8 bit byte, no reserve check.

writeDouble
void writeDouble(double v)

Writes a 64 bit double.

writeFloat
void writeFloat(float v)

Writes a 32 bit float.

writeString
void writeString(const(char)* s)
void writeString(const(char)[] s)

Writes a 0 terminated String

writeString
void writeString(string s)

Disembiguation for string

writen
void writen(void* b, size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
writesLEB128
void writesLEB128(int value)
Undocumented in source. Be warned that the author may not have intended to support it.
writeuLEB128
void writeuLEB128(uint value)
Undocumented in source. Be warned that the author may not have intended to support it.
writezeros
void* writezeros(size_t n)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

buf
ubyte* buf;
Undocumented in source.
pend
ubyte* pend;
Undocumented in source.

Meta