diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-10-08 16:17:26 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-10-08 16:17:26 +0000 |
commit | 3f1c8998166466245aee2860197fb4908e55f1a2 (patch) | |
tree | b6d148679bbd87125f03cb723d5b59969b90c733 /src/membuf.h | |
parent | 5883662909051e99093514483c32e2539a3cf850 (diff) | |
download | libbu++-3f1c8998166466245aee2860197fb4908e55f1a2.tar.gz libbu++-3f1c8998166466245aee2860197fb4908e55f1a2.tar.bz2 libbu++-3f1c8998166466245aee2860197fb4908e55f1a2.tar.xz libbu++-3f1c8998166466245aee2860197fb4908e55f1a2.zip |
Ok...corrected a problem with new block allocation in nids, and it no longer
goes into an infinite loop while doing certain kinds of read. Also, it zeros
out new blocks to make things easier to cope with in the hex editor, it'll
probably also compress better.
I also fixed Bu::MemBuf so that you can now write to arbitrary places
mid-stream.
Diffstat (limited to 'src/membuf.h')
-rw-r--r-- | src/membuf.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/membuf.h b/src/membuf.h index b728f38..15686e9 100644 --- a/src/membuf.h +++ b/src/membuf.h | |||
@@ -29,11 +29,6 @@ namespace Bu | |||
29 | virtual void close(); | 29 | virtual void close(); |
30 | virtual size_t read( void *pBuf, size_t nBytes ); | 30 | virtual size_t read( void *pBuf, size_t nBytes ); |
31 | 31 | ||
32 | /** | ||
33 | *@todo Allow writes at the current position, not just appending to | ||
34 | * the current buffer. This is a silly way to do it, but it covers all | ||
35 | * of our bases for now. | ||
36 | */ | ||
37 | virtual size_t write( const void *pBuf, size_t nBytes ); | 32 | virtual size_t write( const void *pBuf, size_t nBytes ); |
38 | using Stream::write; | 33 | using Stream::write; |
39 | virtual long tell(); | 34 | virtual long tell(); |