summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2003-11-29 02:27:08 +0000
committerpixel <pixel>2003-11-29 02:27:08 +0000
commit2331eb22166b218e69d8d24f59d7f4ac42321106 (patch)
treeb9c25ccdd1739e09779ec342d7743263c2d6543d /include
parentb65f63d0030ba04868f179d5b18589cfff1015da (diff)
Added write pointer to buffer
Binded it into LUA
Diffstat (limited to 'include')
-rw-r--r--include/Buffer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Buffer.h b/include/Buffer.h
index 8996b2d..fb2cab4 100644
--- a/include/Buffer.h
+++ b/include/Buffer.h
@@ -27,10 +27,12 @@ class Buffer : public Handle {
virtual off_t tell() const;
Byte operator[](size_t) const;
Byte & operator[](size_t);
+ off_t wseek(off_t, int = SEEK_SET) throw (GeneralException);
+ off_t wtell() const;
private:
Byte * buffer, zero;
- size_t realsiz, bufsiz, ptr;
+ size_t realsiz, bufsiz, ptr, wptr;
bool seekable;
};