Home
last modified time | relevance | path

Searched refs:ringbuffer_t (Results 1 – 4 of 4) sorted by relevance

/hardware/nxp/secure_element/snxxx/libese-spi/p73/utils/
Dringbuffer.h23 typedef struct ringbuffer_t ringbuffer_t; typedef
33 ringbuffer_t* ringbuffer_init(const size_t size);
37 void ringbuffer_free(ringbuffer_t* rb);
40 size_t ringbuffer_available(const ringbuffer_t* rb);
43 size_t ringbuffer_size(const ringbuffer_t* rb);
48 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length);
54 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p,
58 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length);
62 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length);
Dringbuffer.cpp24 struct ringbuffer_t { struct
32 ringbuffer_t* ringbuffer_init(const size_t size) { in ringbuffer_init() argument
33 ringbuffer_t* p = static_cast<ringbuffer_t*>(calloc(1, sizeof(ringbuffer_t))); in ringbuffer_init()
44 void ringbuffer_free(ringbuffer_t* rb) { in ringbuffer_free()
49 size_t ringbuffer_available(const ringbuffer_t* rb) { in ringbuffer_available()
54 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size()
59 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length) { in ringbuffer_insert()
74 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length) { in ringbuffer_delete()
86 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p, in ringbuffer_peek()
106 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length) { in ringbuffer_pop()
/hardware/nxp/secure_element/pn8x/libese-spi/p73/utils/
Dringbuffer.h23 typedef struct ringbuffer_t ringbuffer_t; typedef
33 ringbuffer_t* ringbuffer_init(const size_t size);
37 void ringbuffer_free(ringbuffer_t* rb);
40 size_t ringbuffer_available(const ringbuffer_t* rb);
43 size_t ringbuffer_size(const ringbuffer_t* rb);
48 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length);
54 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p,
58 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length);
62 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length);
Dringbuffer.cpp24 struct ringbuffer_t { struct
32 ringbuffer_t* ringbuffer_init(const size_t size) { in ringbuffer_init() argument
33 ringbuffer_t* p = static_cast<ringbuffer_t*>(calloc(1, sizeof(ringbuffer_t))); in ringbuffer_init()
44 void ringbuffer_free(ringbuffer_t* rb) { in ringbuffer_free()
49 size_t ringbuffer_available(const ringbuffer_t* rb) { in ringbuffer_available()
54 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size()
59 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length) { in ringbuffer_insert()
74 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length) { in ringbuffer_delete()
86 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p, in ringbuffer_peek()
106 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length) { in ringbuffer_pop()