Function ring_buf_push(ring_buf_t *, const ring_slot_hdr_t *, const uint8_t *)
Defined in File ring_buf.h
Function Documentation
-
bool ring_buf_push(ring_buf_t *rb, const ring_slot_hdr_t *hdr, const uint8_t *payload)
Push a payload into the next free slot.
Operates non-blocking and returns false when the buffer is full so callers can track drops.
- 매개변수:
rb – [in] Ring buffer handle.
hdr – [in] Pointer to the slot header metadata.
payload – [in] Pointer to the payload data to store.