void hat_ring_destroy(hat_ring_t *r)
void hat_ring_unused(hat_ring_t *r, uint8_t *data[2], size_t data_len[2])
void hat_ring_move_head(hat_ring_t *r, size_t len)
size_t hat_ring_size(hat_ring_t *r)
void hat_ring_move_tail(hat_ring_t *r, size_t len)
size_t hat_ring_write(hat_ring_t *r, uint8_t *data, size_t data_len)
void hat_ring_used(hat_ring_t *r, uint8_t *data[2], size_t data_len[2])
struct hat_ring_t hat_ring_t
Definition: ring.h:13
size_t hat_ring_len(hat_ring_t *r)
size_t hat_ring_read(hat_ring_t *r, uint8_t *data, size_t data_len)
hat_ring_t * hat_ring_create(hat_allocator_t *a, size_t size)
Allocator base struct.
Definition: allocator.h:36