From cd968704b4f0db7029953fe1d52c2f3070077639 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 11 Aug 2008 16:23:52 +0000 Subject: Adding the ability to read / write floats and doubles --- include/Handle.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Handle.h b/include/Handle.h index 26c1eda..ea21c6e 100644 --- a/include/Handle.h +++ b/include/Handle.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Handle.h,v 1.39 2008-05-13 06:59:10 pixel Exp $ */ +/* $Id: Handle.h,v 1.40 2008-08-11 16:23:52 pixel Exp $ */ #ifndef __HANDLE_H__ #define __HANDLE_H__ @@ -39,9 +39,13 @@ class Handle : public Base { Uint8 readU8(); Uint16 readU16(); Uint32 readU32(); + float readFloat(); + double readDouble(); void writeU8(Uint8); void writeU16(Uint16); void writeU32(Uint32); + void writeFloat(float); + void writeDouble(double); void copyto(Handle *, ssize_t = -1); void copyfrom(Handle *, ssize_t = -1); bool IsClosed(void) const; -- cgit v1.2.3