Ring Buffer Structure.
Data Fields | |
char * | buf |
Pointer to start of buffer. More... | |
int | buf_size |
Size of ring in bytes. More... | |
int | p_from_buf |
Offset from start of buffer where to read next. More... | |
int | p_to_buf |
Offset from start of buffer where to write next. More... | |
char* RING::buf |
Pointer to start of buffer.
Referenced by rng_buf_get(), rng_buf_put(), rng_init(), and rng_put_ahead().
int RING::buf_size |
Size of ring in bytes.
Referenced by rng_buf_get(), rng_buf_put(), rng_free_bytes(), rng_init(), rng_is_full(), rng_move_ahead(), rng_nBytes(), and rng_put_ahead().
int RING::p_from_buf |
Offset from start of buffer where to read next.
Referenced by rng_buf_get(), rng_buf_put(), rng_flush(), rng_free_bytes(), rng_is_empty(), rng_is_full(), and rng_nBytes().
int RING::p_to_buf |
Offset from start of buffer where to write next.
Referenced by rng_buf_get(), rng_buf_put(), rng_flush(), rng_free_bytes(), rng_is_empty(), rng_is_full(), rng_move_ahead(), rng_nBytes(), and rng_put_ahead().