flod.buffer

Various buffer implementations.

Members

Functions

mmappedBuffer
auto mmappedBuffer(size_t initialSize, Flag!"grow" grow)
Undocumented in source. Be warned that the author may not have intended to support it.
movingBuffer
auto movingBuffer()
movingBuffer
auto movingBuffer(Allocator allocator)

Structs

MmappedBuffer
struct MmappedBuffer

A circular buffer which avoids moving data around, but instead maps the same physical memory block twice into two adjacent virtual memory blocks. It $(U does) move data blocks when growing the buffer.

MovingBuffer
struct MovingBuffer(Allocator = Mallocator)

A buffer that relies on moving chunks of data in memory to ensure that contiguous slices of any requested size can always be provided.

Meta

License

BSL-1.0.