Module flod.buffer

Various buffer implementations.

Functions

Name Description
movingBuffer

Structs

Name Description
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 does move data blocks when growing the buffer.
MovingBuffer 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 A buffer that discards all data written to it and always returns empty slice.

Authors

Adrian Matoga

Copyright

© 2016 Adrian Matoga

License

BSL-1.0.