Deallocates the internal buffer.
Note that $(D_PSYMBOL length) doesn't return the real length of the data, but only the array length that will be returned with $(D_PSYMBOL opIndex) next time. Be sure to call $(D_PSYMBOL opIndex) and set $(D_KEYWORD +=) until $(D_PSYMBOL length) returns 0.
After calling it, set $(D_KEYWORD +=) to the length could be written.
Appends data to the buffer.
Sets how many bytes were written. It will shrink the buffer appropriately. Always call it after $(D_PSYMBOL opIndex).
Returns a chunk with data.
Note that $(D_PSYMBOL length) doesn't return the real length of the data, but only the array length that will be returned with $(D_PSYMBOL opIndex) next time. Be sure to call $(D_PSYMBOL opIndex) and set $(D_KEYWORD +=) until $(D_PSYMBOL length) returns 0.
Allocator.
This property checks if the allocator was set in the constructor and sets it to the default one, if not.
Circular, self-expanding buffer with overflow support. Can be used with functions returning the number of the transferred bytes.
The buffer is optimized for situations where you read all the data from it at once (without writing to it occasionally). It can become ineffective if you permanently keep some data in the buffer and alternate writing and reading, because it may allocate and move elements.