OutBuffer
A destructor is present on this object, but not explicitly documented in the source.
- 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 = false)
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()
- doindent
bool doindent;
- level
int level;
- spaces
bool spaces;
Whether to indent by 4 spaces or by tabs;