memory buffer management class More...
#include <Buffer.h>


Public Member Functions | |
| Buffer () | |
| constructor | |
| virtual | ~Buffer () |
| destructor | |
| void | clear () |
| clears buffer | |
| void * | getBuffer () |
| gets buffer More... | |
| unsigned int | getLength () |
| gets buffer size More... | |
| void | setPosition (const unsigned int pos) |
| sets reading position More... | |
| unsigned int | getPosition () |
| gets reading position More... | |
| void | rewind () |
| rewinds reading position | |
| virtual int | write (void *addr, int size) |
| writes data (override method) More... | |
| virtual int | read (void *addr, int size) |
| reads data (override method) More... | |
Public Member Functions inherited from kome::core::DataAccessor | |
| DataAccessor () | |
| constructor | |
| virtual | ~DataAccessor () |
| destructor | |
Protected Attributes | |
| std::vector< unsigned char > | m_buffer |
| unsigned long | m_pos |
| void * kome::core::Buffer::getBuffer | ( | ) |
| unsigned int kome::core::Buffer::getLength | ( | ) |
| unsigned int kome::core::Buffer::getPosition | ( | ) |
|
virtual |
reads data (override method)
| [out] | addr | the pointer to store data |
| [in] | size | read size |
Implements kome::core::DataAccessor.
Definition at line 98 of file Buffer.cpp.
| void kome::core::Buffer::setPosition | ( | const unsigned int | pos | ) |
|
virtual |
writes data (override method)
| [in] | addr | the pointer to data |
| [in] | size | data size |
Implements kome::core::DataAccessor.
Definition at line 71 of file Buffer.cpp.
|
protected |
1.8.6