52 RingBuffer(
unsigned num_items,
size_t item_size);
61 bool put(
const void *val,
size_t val_size = 0);
64 bool put(uint8_t val);
65 bool put(int16_t val);
66 bool put(uint16_t val);
67 bool put(int32_t val);
68 bool put(uint32_t val);
69 bool put(int64_t val);
70 bool put(uint64_t val);
80 bool force(
const void *val,
size_t val_size = 0);
82 bool force(int8_t val);
83 bool force(uint8_t val);
84 bool force(int16_t val);
85 bool force(uint16_t val);
86 bool force(int32_t val);
87 bool force(uint32_t val);
88 bool force(int64_t val);
89 bool force(uint64_t val);
90 bool force(
float val);
91 bool force(
double val);
99 bool get(
void *val,
size_t val_size = 0);
101 bool get(int8_t &val);
102 bool get(uint8_t &val);
103 bool get(int16_t &val);
104 bool get(uint16_t &val);
105 bool get(int32_t &val);
106 bool get(uint32_t &val);
107 bool get(int64_t &val);
108 bool get(uint64_t &val);
109 bool get(
float &val);
110 bool get(
double &val);
118 unsigned space(
void);
126 unsigned count(
void);
158 bool resize(
unsigned new_size);
163 void print_info(
const char *
name);
172 unsigned _next(
unsigned index);
volatile unsigned _tail
removal point in _item_size units
volatile unsigned _head
insertion point in _item_size units