FlexibleByteRingQueue.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.

  1. bool willFit(void[] item)
  2. bool willFit(size_t bytes)
    class FlexibleByteRingQueue
    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