From 2331eb22166b218e69d8d24f59d7f4ac42321106 Mon Sep 17 00:00:00 2001 From: pixel Date: Sat, 29 Nov 2003 02:27:08 +0000 Subject: Added write pointer to buffer Binded it into LUA --- include/Buffer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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; }; -- cgit v1.2.3