From 3fedf9f3fff7c8ceadd077fc7ed4eff4c4108026 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 17 Sep 2007 08:33:25 +0000 Subject: Adding "GetRemaining" to Buffer class, and enabling the read method to allow null buffers. --- include/Buffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Buffer.h b/include/Buffer.h index 73225bc..47c5c5a 100644 --- a/include/Buffer.h +++ b/include/Buffer.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Buffer.h,v 1.22 2007-06-23 15:36:02 pixel Exp $ */ +/* $Id: Buffer.h,v 1.23 2007-09-17 08:33:25 pixel Exp $ */ #ifndef __BUFFER_H__ #define __BUFFER_H__ @@ -43,6 +43,7 @@ class Buffer : public Handle { virtual Buffer operator=(const Buffer &); virtual bool CanWatch() const; virtual ssize_t GetSize() const; + virtual ssize_t GetRemaining() const; virtual bool CanSeek() const; virtual off_t seek(off_t, int = SEEK_SET) throw (GeneralException); virtual off_t tell() const; -- cgit v1.2.3