- align2
void align2()
Optimize common special case alignSize(2)
- align4
void align4()
Optimize common special case alignSize(4)
- alignSize
void alignSize(uint alignsize)
0-fill to align on power of 2 boundary.
- fill0
void fill0(uint nbytes)
Append nbytes of 0 to the internal buffer.
- reserve
void reserve(size_t nbytes)
Preallocate nbytes more to the size of the internal buffer.
- spread
void spread(size_t index, size_t nbytes)
At offset index into buffer, create nbytes of space by shifting upwards
all data past index.
- toBytes
void[] toBytes()
- toString
string toString()
Convert internal buffer to array of chars.
- write
void write(const(ubyte)[] bytes)
Append data to the internal buffer.
- write
void write(wchar[] chars)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(const(dchar)[] chars)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(ubyte b)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(byte b)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(dchar c)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(ushort w)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(short s)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(wchar c)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(uint w)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(ulong l)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(long l)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(float f)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(double f)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(real f)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(char[] s)
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.
OutBuffer provides a way to build up an array of bytes out of raw data. It is useful for things like preparing an array of bytes to write out to a file. OutBuffer's byte order is the format native to the computer. To control the byte order (endianness), use a class derived from OutBuffer.