flod.buffer

Various buffer implementations.

Members

Functions

movingBuffer
auto movingBuffer(auto ref Allocator allocator)
movingBuffer
auto movingBuffer()

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.

NullBuffer
struct NullBuffer

A buffer that discards all data written to it and always returns empty slice.

Meta