Index: ext/libicpf/src/circ_buffer.cpp =================================================================== diff -u -r338a33bbdb8c82416f0351408eea3243520784e5 -r0841fb30dd4ee427a75fe6b10d2a5b15ac384966 --- ext/libicpf/src/circ_buffer.cpp (.../circ_buffer.cpp) (revision 338a33bbdb8c82416f0351408eea3243520784e5) +++ ext/libicpf/src/circ_buffer.cpp (.../circ_buffer.cpp) (revision 0841fb30dd4ee427a75fe6b10d2a5b15ac384966) @@ -348,6 +348,31 @@ skip_bytes(m_tDataSize-tToLeave); } +void circular_buffer::clear() +{ + m_tDataSize=0; +} + +size_t circular_buffer::get_datasize() const +{ + return m_tDataSize; +} + +bool circular_buffer::is_empty() const +{ + return m_tDataSize == 0; +} + +circular_buffer::operator const byte_t*() const +{ + return m_pbyBuffer; +} + +const byte_t* circular_buffer::get_buffer() const +{ + return m_pbyBuffer; +} + void circular_buffer::push_bits(ulong_t ulBits, byte_t byCount) { assert(m_pbyBuffer); Index: ext/libicpf/src/circ_buffer.h =================================================================== diff -u -r338a33bbdb8c82416f0351408eea3243520784e5 -r0841fb30dd4ee427a75fe6b10d2a5b15ac384966 --- ext/libicpf/src/circ_buffer.h (.../circ_buffer.h) (revision 338a33bbdb8c82416f0351408eea3243520784e5) +++ ext/libicpf/src/circ_buffer.h (.../circ_buffer.h) (revision 0841fb30dd4ee427a75fe6b10d2a5b15ac384966) @@ -73,13 +73,13 @@ void skip_bytes(size_t tCount); // skips some bytes from the beginning of a buffer void flush(size_t ulToLeave); // removes (almost) all the data from a buffer - void clear() { m_tDataSize=0; }; + void clear(); - size_t get_datasize() const { return m_tDataSize; }; - bool is_empty() const { return m_tDataSize == 0; }; + size_t get_datasize() const; + bool is_empty() const; - operator const byte_t*() const { return m_pbyBuffer; }; - const byte_t* get_buffer() const { return m_pbyBuffer; }; + operator const byte_t*() const; + const byte_t* get_buffer() const; // void dump();