Construct given size.
Construct from filename. Will map the file into memory (or create it anew if necessary) and start writing at the beginning of it.
Frees resources associated automatically.
Allocate space, but leave it uninitialized.
Insert left at i, and right at j. Return index just past right.
For porting with ease from dmd.backend.outbuf.Outbuffer
For porting with ease from dmd.backend.outbuf.Outbuffer
Releases all resources associated with this and resets it as an empty memory buffer. The config variables notlinehead, doindent etc. are not changed.
Frees resources associated.
Transfer ownership of the allocated data to the caller.
Extract the data as a slice and take ownership of it.
Destructively saves the contents of this to filename. As an optimization, if the file already has identical contents with the buffer, no copying is done. This is because on SSD drives reading is often much faster than writing and because there's a high likelihood an identical file is written during the build process.
Convert u to a string and append it to the buffer.
Reserves nbytes bytes of additional memory (or file space) in advance. The resulting capacity is at least the previous length plus nbytes.
Shrink the size of the data to size.
Writes a 16 bit value.
Writes a 16 bit value, no reserve check.
Writes a 32 bit int.
Writes a 64 bit int.
Writes an 8 bit byte, no reserve check.
Write string to buffer, ensure it is zero terminated
strip trailing tabs or spaces, write newline
NOT zero-terminated
NOT zero-terminated, followed by newline
OutBuffer is a write-only output stream of untyped data. It is backed up by a contiguous array or a memory-mapped file.