Outbuffer

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

Members

Functions

bracket
void bracket(char c1, char c2)

Bracket buffer contents with c1 and c2.

length
size_t length()

Returns the number of bytes written.

opSlice
inout(ubyte)[] opSlice()

Ditto

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.

setsize
void setsize(size_t size)

Set current size of buffer.

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.

write32n
void write32n(int v)

Writes a 32 bit int, no reserve check.

write64
void write64(long v)

Writes a 64 bit long.

write64n
void write64n(long v)

Writes a 64 bit long, no reserve check

writeByte
void writeByte(int v)

Writes an 8 bit byte.

writeByten
void writeByten(int 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

Suggestion Box / Bug Report