30 #ifndef STATIC_FIFO_BUFFER_HPP 31 #define STATIC_FIFO_BUFFER_HPP 46 template<
class T,
size_t size>
95 else if (
tail == size)
106 assert(
tail <= size);
108 assert(
tail + n <= size);
125 assert(
tail <= size);
WritableBuffer< T > Range
void Append(size_type n)
Expands the tail of the buffer, after data has been written to the buffer returned by write()...
A first-in-first-out buffer: you can append data at the end, and read data from the beginning...
A reference to a memory area that is writable.
constexpr StaticFifoBuffer()
void Consume(size_type n)
Marks a chunk as consumed.
Range Read()
Return a buffer range which may be read.
Range Write()
Prepares writing.