signed long ju_ssize_t
Signed size type.
Definition: ju_defs.h:41
JBU_API void() ju_buff_move(ju_buff_t *, ju_ssize_t v)
Moves buffer data forwards or backwards...
Definition: ju_buffer.c:121
JBU_API size_t() ju_buff_append(ju_buff_t *b, const void *src, size_t size)
Adds data from array to te end of the buffer.
Definition: ju_buffer.c:79
JBU_API void *() ju_buff_data(ju_buff_t *b)
Returns buffer data from the beginning.
Definition: ju_buffer.c:161
JBU_API void() ju_buff_init(ju_buff_t *b, size_t s)
Initializes buffer structure.
Definition: ju_buffer.c:36
JBU_API size_t() ju_buff_fill(ju_buff_t *b, const void *src, size_t size, size_t n)
Adds data from src array copied N times to the end of the buffer.
Definition: ju_buffer.c:92
JBU_API void() ju_buff_resize(ju_buff_t *b, size_t s)
Resizes buffer structure.
Definition: ju_buffer.c:51
JBU_API void ju_buff_except(ju_buff_t *b, int(*cb)(ju_buff_t *, ju_ssize_t))
Underflow/owerflow exception handling.
Definition: ju_buffer.c:65
JBU_API void() ju_buff_check_size(ju_buff_t *b, size_t s)
Check size of buffer with requested, and resizes if there is not enough spce.
Definition: ju_buffer.c:58
JBU_API void() ju_buff_lock(ju_buff_t *b)
Locks buffer.
Definition: ju_buffer.c:165
JBU_API size_t() ju_buff_used(ju_buff_t *b)
Returns size of buffer busy part.
Definition: ju_buffer.c:72
JBU_API size_t() ju_buff_space(ju_buff_t *b)
Returns size of buffer empity part.
Definition: ju_buffer.c:75
JBU_API void() ju_buff_uninit(ju_buff_t *b)
Deinitializes buffer structure.
Definition: ju_buffer.c:45
JBU_API size_t() ju_buff_write(ju_buff_t *, int fd, size_t)
Similar to ju_buff_remove(), but writes values to the the file by descriptor.
Definition: ju_buffer.c:148
JBU_API size_t() ju_buff_read(ju_buff_t *, int fd, size_t)
Similar to ju_buff_append(), but reads values from the file by descriptor.
Definition: ju_buffer.c:136
JBU_API size_t() ju_buff_size(ju_buff_t *b)
Returns buffer summary size (used and unused).
Definition: ju_buffer.c:69
JBU_API size_t() ju_buff_remove(ju_buff_t *, void *dst, size_t size)
Removes data from start of buffer to the dst array.
Definition: ju_buffer.c:107
JBU_API void() ju_buff_unlock(ju_buff_t *b)
Unlocks buffer.
Definition: ju_buffer.c:168
Main header file with general definitions for the JackUtils API.
FIFO Buffer internal structure.
Definition: ju_buffer.h:45