Outbuffer

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.

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.

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

Meta