template class CCL::BufferChain
Overview
#include <bufferchain.h> template <class T> class BufferChain { public: // classes class Buffer; // construction BufferChain (int minCapacity = 255); // methods void append (T* data, int count); int read (int offset, T* data, int count); int count () const; void purge (); void flush (); };
Detailed Documentation
Methods
void append (T* data, int count)
Writes data to the buffer chain.
int read (int offset, T* data, int count)
Reads data.
int count () const
Return the number of elements in all buffers.
void purge ()
Reduces the buffer capacity to the fill size.
void flush ()
Reduces the buffer capacity to the fill size.