NotifyingByteQueue.willFit

Finds out whether the provided number of bytes will fit in the queue. Also considers the need of wrapping.

Note that this method internally adds on the extra bytes required for the item header, so it is *not* necessary for the end-user to first calculate the item's push size.

class NotifyingByteQueue
bool
willFit
(
size_t bytes
)

Parameters

bytes size_t

size of item to check

Return Value

Type: bool

true if the bytes fits, else false

Meta