aboutsummaryrefslogtreecommitdiff
path: root/src/stream.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-04-10 17:23:35 +0000
committerMike Buland <eichlan@xagasoft.com>2007-04-10 17:23:35 +0000
commit903e7a1e3d4fe99e9de7f4adc1e401ba871caec9 (patch)
treeb907c597cf228d4fd58a771f1b65d559c2c01c89 /src/stream.h
parentb6e100b94b12f3f92ec025dc2363eaf7c0ee6662 (diff)
downloadlibbu++-903e7a1e3d4fe99e9de7f4adc1e401ba871caec9.tar.gz
libbu++-903e7a1e3d4fe99e9de7f4adc1e401ba871caec9.tar.bz2
libbu++-903e7a1e3d4fe99e9de7f4adc1e401ba871caec9.tar.xz
libbu++-903e7a1e3d4fe99e9de7f4adc1e401ba871caec9.zip
Wrote some cute file unit tests, and added some more error reporting to SFile.
Also fixed the stream system to use void * pointers instead of char *.
Diffstat (limited to '')
-rw-r--r--src/stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream.h b/src/stream.h
index 274f4fd..ae94234 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -13,8 +13,8 @@ namespace Bu
13 virtual ~Stream(); 13 virtual ~Stream();
14 14
15 virtual void close() = 0; 15 virtual void close() = 0;
16 virtual size_t read( char *pBuf, size_t nBytes ) = 0; 16 virtual size_t read( void *pBuf, size_t nBytes ) = 0;
17 virtual size_t write( const char *pBuf, size_t nBytes ) = 0; 17 virtual size_t write( const void *pBuf, size_t nBytes ) = 0;
18 18
19 virtual long tell() = 0; 19 virtual long tell() = 0;
20 virtual void seek( long offset ) = 0; 20 virtual void seek( long offset ) = 0;