diff options
author | pixel <pixel> | 2003-11-27 12:18:36 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-11-27 12:18:36 +0000 |
commit | 23cebe4e31e1ddc15de71af393c4f1271e379124 (patch) | |
tree | 7dbcee8dd53c33a9ded4536b4f8c7e4b160b364c /include | |
parent | 9068113e6246a99881b463a2eb94418d154a5452 (diff) |
Tweaked buffers
Diffstat (limited to 'include')
-rw-r--r-- | include/Buffer.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/Buffer.h b/include/Buffer.h index 316af13..8996b2d 100644 --- a/include/Buffer.h +++ b/include/Buffer.h @@ -11,7 +11,7 @@ class Buffer : public Handle { public: - Buffer(); + Buffer(bool seekable = false); Buffer(const Buffer &); virtual ~Buffer(); virtual ssize_t write(const void *buf, size_t count) throw(GeneralException); @@ -22,12 +22,16 @@ class Buffer : public Handle { virtual Buffer operator=(const Buffer &); virtual bool CanWatch() const; virtual ssize_t GetSize() const; - char operator[](size_t) const; - char & operator[](size_t); + virtual bool CanSeek() const; + virtual off_t seek(off_t, int = SEEK_SET) throw (GeneralException); + virtual off_t tell() const; + Byte operator[](size_t) const; + Byte & operator[](size_t); private: - char * buffer, zero; + Byte * buffer, zero; size_t realsiz, bufsiz, ptr; + bool seekable; }; #endif |