diff options
-rw-r--r-- | includes/Buffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/Buffer.h b/includes/Buffer.h index b6e8159..6577c64 100644 --- a/includes/Buffer.h +++ b/includes/Buffer.h @@ -18,7 +18,9 @@ class Buffer : public SeekableHandle { virtual bool canWrite(); virtual const char * getName(); virtual off_t getSize(); + const uint8_t * getBuffer() { return m_buffer + rtell(); } void reset(); + void rewind() { rseek(0); wseek(0); } private: uint8_t * m_buffer; bool m_fromConst; |