FixedByteRingQueue

Ring queue for raw element data.

Constructors

this
this(size_t element_size, size_t max_items)

Constructor

Members

Functions

peek
void[] peek()
Undocumented in source. Be warned that the author may not have intended to support it.
pop
void[] pop()

Pops an element from the queue and returns a slice to that element. The value of the element must then be copied from the sliced location before the next push() or pop() is called.

pop
bool pop(void[] element)

Pops an element from the queue and copies the value to element.

push
bool push(void[] element)

Pushes an element into the queue.

push
void[] push(size_t ignored)

Pushes an element into the queue and returns a slice to that element. The value of the element must then be copied to the sliced location before the next push() or pop() is called.

Meta