IByteQueue

Base class for a queue storing raw ubyte data.

Members

Functions

clear
void clear()

Removes all items from the queue.

peek
void[] peek()

Peek at the next item that would be popped from the queue.

pop
void[] pop()

Pops an item from the queue.

push
void[] push(size_t size)

Reserves space for an item of <size> bytes on the queue but doesn't fill the content. The caller is expected to fill in the content using the returned slice.

push
bool push(void[] item)

Pushes an item into the queue.

Inherited Members

From IQueueInfo

length
size_t length()
used_space
ulong used_space()
free_space
ulong free_space()
total_space
ulong total_space()
is_empty
bool is_empty()

Tells whether the queue is empty.

willFit
bool willFit(size_t bytes)

Finds out whether the provided number of bytes will fit in the queue.

Meta