Searched refs:ringbuffer_size (Results 1 – 4 of 4) sorted by relevance
54 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size() function77 if (length > ringbuffer_size(rb)) length = ringbuffer_size(rb); in ringbuffer_delete()91 assert((size_t)offset <= ringbuffer_size(rb)); in ringbuffer_peek()94 const size_t bytes_to_copy = (offset + length > ringbuffer_size(rb)) in ringbuffer_peek()95 ? ringbuffer_size(rb) - offset in ringbuffer_peek()
43 size_t ringbuffer_size(const ringbuffer_t* rb);
25 histogram::Ringbuffer::Ringbuffer(size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk… in Ringbuffer() argument26 rb_max_size(ringbuffer_size), in Ringbuffer()33 size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk) { in create() argument34 if ((ringbuffer_size == 0) || !tk) in create()36 …return std::unique_ptr<histogram::Ringbuffer>(new histogram::Ringbuffer(ringbuffer_size, std::move… in create()72 bool histogram::Ringbuffer::resize(size_t ringbuffer_size) { in resize() argument74 if (ringbuffer_size == 0) in resize()76 rb_max_size = ringbuffer_size; in resize()
50 … static std::unique_ptr<Ringbuffer> create(size_t ringbuffer_size, std::unique_ptr<TimeKeeper> tk);52 bool resize(size_t ringbuffer_size);63 Ringbuffer(size_t ringbuffer_size, std::unique_ptr<TimeKeeper> tk);