summaryrefslogtreecommitdiff
path: root/src/DiskWriter.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-12-24 15:55:59 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-12-24 15:55:59 +0000
commita413cb50f7035fdaa1c85b6247b98946b3342ef1 (patch)
treec8144080a3006de3bbd8ca6a43cbc9e8a49b3c23 /src/DiskWriter.h
parent708b9f4a3da70e963968c0a013dea6777c6b276e (diff)
Diffstat (limited to 'src/DiskWriter.h')
-rw-r--r--src/DiskWriter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/DiskWriter.h b/src/DiskWriter.h
index daea1f3c..924b2fb0 100644
--- a/src/DiskWriter.h
+++ b/src/DiskWriter.h
@@ -79,8 +79,15 @@ public:
* @param position the offset of this binary stream
*/
virtual void writeData(const char* data, int len, long long int position = 0) = 0;
+ virtual void writeData(const unsigned char* data, int len, long long int position = 0)
+ {
+ writeData((const char*)data, len, position);
+ }
virtual int readData(char* data, int len, long long int position) = 0;
+ virtual int readData(unsigned char* data, int len, long long int position) {
+ return readData((char*)data, len, position);
+ }
virtual string sha1Sum(long long int offset, long long int length) = 0;