FastLED 3.10.6
Loading...
Searching...
No Matches

◆ remaining()

size_t fl::net::ble::BleNotifyQueue::remaining ( ) const
inline

Bytes of the in-flight payload not yet accepted by the stack.

Definition at line 112 of file ble_notify_queue.h.

112 {
113 if (empty()) {
114 return 0;
115 }
116 const size_t size = mSlots[mHead].size();
117 return mOffset >= size ? 0 : size - mOffset;
118 }
size_t mOffset
Bytes of mSlots[mHead] already accepted. Consumer-only.
fl::vector< u8 > mSlots[kSlots]
volatile size_t mHead
Owned by the consumer; read by the producer to detect "full".
bool empty() const
True when nothing is waiting to be sent.

References empty(), mHead, mOffset, and mSlots.

Referenced by chunkData(), and chunkSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: