205 uint32_t *out_index);
Definition: u_id_ringbuffer.cpp:25
void u_id_ringbuffer_pop_back(struct u_id_ringbuffer *uirb)
Pop an element from the back, if any.
Definition: u_id_ringbuffer.cpp:169
int32_t u_id_ringbuffer_find_id_unordered(struct u_id_ringbuffer *uirb, uint64_t search_id, uint64_t *out_id, uint32_t *out_index)
Find the element with the supplied ID search_id in an unordered buffer.
Definition: u_id_ringbuffer.cpp:309
int32_t u_id_ringbuffer_get_back(struct u_id_ringbuffer *uirb, uint64_t *out_id)
Get the back (most recent) of the buffer.
Definition: u_id_ringbuffer.cpp:179
void u_id_ringbuffer_destroy(struct u_id_ringbuffer **ptr_to_uirb)
Destroy an ID ring buffer.
Definition: u_id_ringbuffer.cpp:327
int32_t u_id_ringbuffer_get_front(struct u_id_ringbuffer *uirb, uint64_t *out_id)
Get the front (least recent) of the buffer.
Definition: u_id_ringbuffer.cpp:193
int32_t u_id_ringbuffer_lower_bound_id(struct u_id_ringbuffer *uirb, uint64_t search_id, uint64_t *out_id, uint32_t *out_index)
Find the latest element not less than the supplied ID search_id .
Definition: u_id_ringbuffer.cpp:294
int32_t u_id_ringbuffer_get_at_clamped_age(struct u_id_ringbuffer *uirb, uint32_t age, uint64_t *out_id)
Get an element a certain distance ("age") from the back of the buffer, clamping age to stay in bounds...
Definition: u_id_ringbuffer.cpp:250
int32_t u_id_ringbuffer_get_at_age(struct u_id_ringbuffer *uirb, uint32_t age, uint64_t *out_id)
Get an element a certain distance ("age") from the back of the buffer.
Definition: u_id_ringbuffer.cpp:236
struct u_id_ringbuffer * u_id_ringbuffer_create(uint32_t capacity)
Create a ringbuffer for storing IDs.
Definition: u_id_ringbuffer.cpp:126
int64_t u_id_ringbuffer_push_back(struct u_id_ringbuffer *uirb, uint64_t id)
Push a new element to the back.
Definition: u_id_ringbuffer.cpp:149
uint32_t u_id_ringbuffer_get_size(struct u_id_ringbuffer const *uirb)
Get the number of elements in the buffer.
Definition: u_id_ringbuffer.cpp:208
bool u_id_ringbuffer_is_empty(struct u_id_ringbuffer const *uirb)
Get whether the buffer is empty.
Definition: u_id_ringbuffer.cpp:217
int32_t u_id_ringbuffer_get_at_index(struct u_id_ringbuffer *uirb, uint32_t index, uint64_t *out_id)
Get an element a certain index from the front of the (logical) buffer.
Definition: u_id_ringbuffer.cpp:264
void u_id_ringbuffer_pop_front(struct u_id_ringbuffer *uirb)
Pop an element from the front, if any.
Definition: u_id_ringbuffer.cpp:160