OutBuffer

Undocumented in source.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

allocate
char[] allocate(size_t nbytes)

Allocate space, but leave it uninitialized.

bracket
size_t bracket(size_t i, const(char)* left, size_t j, const(char)* right)

Insert left at i, and right at j. Return index just past right.

extractData
char* extractData()

Transfer ownership of the allocated data to the caller.

extractSlice
char[] extractSlice(bool nullTerminate)

Extract the data as a slice and take ownership of it.

insert
size_t insert(size_t offset, const(void)* p, size_t nbytes)
opSlice
const(char)[] opSlice()
print
void print(ulong u)

Convert u to a string and append it to the buffer.

setsize
void setsize(size_t size)

Shrink the size of the data to size.

writenl
void writenl()

write newline

Variables

doindent
bool doindent;

Whether to indent

level
int level;

Current indent level

spaces
bool spaces;

Whether to indent by 4 spaces or by tabs;

Suggestion Box / Bug Report