FixedRingQueueBase

Ring queue base class.

Constructors

this
this(size_t max_items, size_t element_size)

Constructor

Members

Functions

maxItems
size_t maxItems()
peek_
void[] peek_()
Undocumented in source.
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.

push_
void[] push_()

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.

used_space
ulong used_space()
willFit
bool willFit(size_t bytes)

Finds out whether another item will fit

Variables

element_size
size_t element_size;

Element size in bytes

max_items
size_t max_items;

Maximum number of elements in queue

used_space
size_t used_space;
Undocumented in source.

Meta