OutBuffer

Undocumented in source.

Destructor

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

Members

Functions

allocate
char[] allocate(size_t nbytes)

Allocate space, but leave it uninitialized.

bracket
void bracket(char left, char right)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
extractChars
char* extractChars()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

fill0
void fill0(size_t nbytes)
Undocumented in source. Be warned that the author may not have intended to support it.
insert
size_t insert(size_t offset, const(void)* p, size_t nbytes)
insert
size_t insert(size_t offset, const(char)[] s)
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
char opIndex(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
const(char)[] opSlice()
opSlice
const(char)[] opSlice(size_t lwr, size_t upr)
Undocumented in source. Be warned that the author may not have intended to support it.
peekChars
char* peekChars()
Undocumented in source. Be warned that the author may not have intended to support it.
prependbyte
void prependbyte(uint b)
Undocumented in source. Be warned that the author may not have intended to support it.
prependstring
void prependstring(const(char)* string)
Undocumented in source. Be warned that the author may not have intended to support it.
print
void print(ulong u)

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

printf
void printf(const(char)* format, ...)
Undocumented in source. Be warned that the author may not have intended to support it.
printf
void printf(const(char)* format, ...)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(size_t offset, size_t nbytes)
Undocumented in source. Be warned that the author may not have intended to support it.
reserve
void reserve(size_t nbytes)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
setsize
void setsize(size_t size)

Shrink the size of the data to size.

spread
void spread(size_t offset, size_t nbytes)
Undocumented in source. Be warned that the author may not have intended to support it.
vprintf
void vprintf(const(char)* format, va_list args)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(const(void)* data, size_t nbytes)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(const(void)[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(OutBuffer* buf)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(RootObject obj)
Undocumented in source. Be warned that the author may not have intended to support it.
write4
void write4(uint w)
Undocumented in source. Be warned that the author may not have intended to support it.
writeByte
void writeByte(uint b)
Undocumented in source. Be warned that the author may not have intended to support it.
writeUTF16
void writeUTF16(uint w)
Undocumented in source. Be warned that the author may not have intended to support it.
writeUTF8
void writeUTF8(uint b)
Undocumented in source. Be warned that the author may not have intended to support it.
writenl
void writenl()

write newline

writestring
void writestring(const(char)* string)
Undocumented in source. Be warned that the author may not have intended to support it.
writestring
void writestring(const(char)[] s)
Undocumented in source. Be warned that the author may not have intended to support it.
writestring
void writestring(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
writestringln
void writestringln(const(char)[] s)
Undocumented in source. Be warned that the author may not have intended to support it.
writewchar
void writewchar(uint w)
Undocumented in source. Be warned that the author may not have intended to support it.
writeword
void writeword(uint w)
Undocumented in source. Be warned that the author may not have intended to support it.

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;

Meta