Creates a new read buffer.
Deallocates the internal buffer.
Clears the buffer.
Returns a free chunk of the buffer.
Appends some data to the buffer.
Allocator.
This property checks if the allocator was set in the constructor and sets it to the default one, if not.
Self-expanding buffer, that can be used with functions returning the number of the read bytes.
This buffer supports asynchronous reading. It means you can pass a new chunk to an asynchronous read function during you are working with already available data. But only one asynchronous call at a time is supported. Be sure to call $(D_PSYMBOL ReadBuffer.clear()) before you append the result of the pended asynchronous call.