summaryrefslogtreecommitdiff
path: root/src/membuf.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-27 15:42:50 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-27 15:42:50 +0000
commit5ec9a131e12d021c42b46b601f5e79502485bebb (patch)
tree31d63d293a6c5bc6ea1d677474380ea48976add4 /src/membuf.h
parent01ecf54b07e75c17ca5f7039084daeefaea9a1c7 (diff)
downloadlibbu++-5ec9a131e12d021c42b46b601f5e79502485bebb.tar.gz
libbu++-5ec9a131e12d021c42b46b601f5e79502485bebb.tar.bz2
libbu++-5ec9a131e12d021c42b46b601f5e79502485bebb.tar.xz
libbu++-5ec9a131e12d021c42b46b601f5e79502485bebb.zip
The MemBuf works just fine, although it still can't over-write data in the
buffer.
Diffstat (limited to 'src/membuf.h')
-rw-r--r--src/membuf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/membuf.h b/src/membuf.h
index 2cbbbdc..877b35e 100644
--- a/src/membuf.h
+++ b/src/membuf.h
@@ -4,6 +4,7 @@
4#include <stdint.h> 4#include <stdint.h>
5 5
6#include "bu/stream.h" 6#include "bu/stream.h"
7#include "bu/fstring.h"
7 8
8namespace Bu 9namespace Bu
9{ 10{
@@ -18,6 +19,12 @@ namespace Bu
18 19
19 virtual void close(); 20 virtual void close();
20 virtual size_t read( void *pBuf, size_t nBytes ); 21 virtual size_t read( void *pBuf, size_t nBytes );
22
23 /**
24 *@todo Allow writes at the current position, not just appending to
25 * the current buffer. This is a silly way to do it, but it covers all
26 * of our bases for now.
27 */
21 virtual size_t write( const void *pBuf, size_t nBytes ); 28 virtual size_t write( const void *pBuf, size_t nBytes );
22 virtual long tell(); 29 virtual long tell();
23 virtual void seek( long offset ); 30 virtual void seek( long offset );