RingBuffer

Fixed size circular buffer. \ Size **must** be a power of 2. Block when reading when empty or writing when full.

Constructors

this
this()

Ctor

Members

Functions

close
void close()

Cleanup everything, don't use the buffer afterwards.

read
T read()

Extract a value.

reset
void reset()

Empty the buffer.

write
void write(T value)

Append a new value.

Properties

isEmpty
bool isEmpty [@property getter]

Is the buffer empty ?

isFull
bool isFull [@property getter]

Is the buffer full ?

Meta