summaryrefslogtreecommitdiff
path: root/common/file.h
diff options
context:
space:
mode:
authorleo1999-12-29 00:01:48 +0000
committerleo1999-12-29 00:01:48 +0000
commitbe0403079cd37132bc2a4a201b7e5f0a60984237 (patch)
treed8af471c892b232af5ed68d3272370672ce2623b /common/file.h
parent6338a7b1108e6e3e5ec3768172d1bf03cbbfc3b2 (diff)
Added some functions to read integers with endianess check
git-svn-id: http://svn.leocad.org/trunk@41 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/file.h')
-rw-r--r--common/file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/file.h b/common/file.h
index 90b3395..6445a61 100644
--- a/common/file.h
+++ b/common/file.h
@@ -27,6 +27,13 @@ public:
virtual int GetChar()=0;
virtual int PutChar(int c)=0;
+ unsigned long ReadByte(void* pBuf, unsigned long nCount);
+ unsigned long ReadShort(void* pBuf, unsigned long nCount);
+ unsigned long ReadLong(void* pBuf, unsigned long nCount);
+ unsigned long WriteByte(const void* pBuf, unsigned long nCount);
+ unsigned long WriteShort(const void* pBuf, unsigned long nCount);
+ unsigned long WriteLong(const void* pBuf, unsigned long nCount);
+
virtual void Abort()=0;
virtual void Flush()=0;
virtual void Close()=0;