Struct BufferManager

Array based buffer manager. Uses custom allocator to get the data.

struct BufferManager(T, Allocator) ;

Based on concept by Dmitry Olshansky

Methods

NameDescription
avail
capacity
extendAdd more data to the window of currently valid data. To avoid expensive reallocation, use avail to tune this call.
releaseBackGive bytes back to the buffer manager from the back of the buffer. These bytes can be removed in this operation or further operations and should no longer be used.
releaseFrontGive bytes back to the buffer manager from the front of the buffer. These bytes can be removed in this operation or further operations and should no longer be used.
windowThe window of currently valid data