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

◆ chunkSize()

size_t fl::net::ble::BleNotifyQueue::chunkSize ( size_t max_payload) const
inline

Size of the next chunk, capped at max_payload.

Never rounds up past what is left of the in-flight payload, so a caller can hand the result straight to att_server_notify().

Definition at line 132 of file ble_notify_queue.h.

132 {
133 if (max_payload == 0) {
134 return 0;
135 }
136 const size_t left = remaining();
137 return left < max_payload ? left : max_payload;
138 }
size_t remaining() const
Bytes of the in-flight payload not yet accepted by the stack.

References remaining().

+ Here is the call graph for this function: