eckit::CircularBuffer class

Base classes

class NonCopyable
Inherit from this class to make a NonCopyable class.

Constructors, destructors, conversion operators

CircularBuffer(size_t size = 64*1024, size_t capactity = std::numeric_limits<size_t>::max())
~CircularBuffer()

Public functions

auto write(const void* buffer, size_t length) -> size_t
auto read(void* buffer, size_t length) -> size_t
auto length() const -> size_t
auto capacity() const -> size_t
auto size() const -> size_t
void clear()