Struct rc_ringbuf_t#

Struct Documentation#

struct rc_ringbuf_t#

Struct containing state of a ringbuffer and pointer to dynamically allocated memory.

Public Members

double *d#

pointer to dynamically allocated data

int size#

number of elements the buffer can hold

int index#

index of the most recently added value

int initialized#

flag indicating if memory has been allocated for the buffer