Files | |
file | ringbuffer.h |
Classes | |
struct | ringbuf_s |
Macros | |
#define | EXTERN extern "C" |
Functions | |
FAR struct ringbuf_s * | ringbuf_new (size_t size) |
void | ringbuf_free (FAR struct ringbuf_s *rb) |
ssize_t | ringbuf_read (FAR struct ringbuf_s *rb, FAR void *buf, size_t count) |
ssize_t | ringbuf_write (FAR struct ringbuf_s *rb, FAR void *buf, size_t count) |
size_t | ringbuf_buffersize (FAR struct ringbuf_s *rb) |
size_t | ringbuf_bytesused (FAR struct ringbuf_s *rb) |
size_t | ringbuf_bytesavail (FAR struct ringbuf_s *rb) |
FAR struct ringbuf_s * ringbuf_new | ( | size_t | size | ) |
void ringbuf_free | ( | FAR struct ringbuf_s * | rb | ) |
ssize_t ringbuf_read | ( | FAR struct ringbuf_s * | rb, |
FAR void * | buf, | ||
size_t | count | ||
) |
ssize_t ringbuf_write | ( | FAR struct ringbuf_s * | rb, |
FAR void * | buf, | ||
size_t | count | ||
) |
size_t ringbuf_buffersize | ( | FAR struct ringbuf_s * | rb | ) |
size_t ringbuf_bytesused | ( | FAR struct ringbuf_s * | rb | ) |
Gets the number of bytes used.
[in] | rb | Pointer to a Ring Buffer. |