diff options
Diffstat (limited to '')
| -rw-r--r-- | src/membuf.h | 7 |
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 | ||
| 8 | namespace Bu | 9 | namespace 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 ); |
