1717 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818*/
1919
20- #ifndef __BINARYSTREAM_H
21- #define __BINARYSTREAM_H
20+ #ifndef __BINARY_STREAM_H
21+ #define __BINARY_STREAM_H
2222
2323#include < Stream.h>
2424#include < StreamBackend.h>
@@ -41,16 +41,16 @@ namespace GAGCore
4141
4242 virtual void write (const void *data, const size_t size, const std::string name);
4343
44- virtual void writeEndianIndependant (const void *v, const size_t size, const std::string name);
44+ virtual void writeEndianIndependent (const void *v, const size_t size, const std::string name);
4545
4646 virtual void writeSint8 (const Sint8 v, const std::string name) { this ->write (&v, 1 , name); }
4747 virtual void writeUint8 (const Uint8 v, const std::string name) { this ->write (&v, 1 , name); }
48- virtual void writeSint16 (const Sint16 v, const std::string name) { this ->writeEndianIndependant (&v, 2 , name); }
49- virtual void writeUint16 (const Uint16 v, const std::string name) { this ->writeEndianIndependant (&v, 2 , name); }
50- virtual void writeSint32 (const Sint32 v, const std::string name) { this ->writeEndianIndependant (&v, 4 , name); }
51- virtual void writeUint32 (const Uint32 v, const std::string name) { this ->writeEndianIndependant (&v, 4 , name); }
52- virtual void writeFloat (const float v, const std::string name) { this ->writeEndianIndependant (&v, 4 , name); }
53- virtual void writeDouble (const double v, const std::string name) { this ->writeEndianIndependant (&v, 8 , name); }
48+ virtual void writeSint16 (const Sint16 v, const std::string name) { this ->writeEndianIndependent (&v, 2 , name); }
49+ virtual void writeUint16 (const Uint16 v, const std::string name) { this ->writeEndianIndependent (&v, 2 , name); }
50+ virtual void writeSint32 (const Sint32 v, const std::string name) { this ->writeEndianIndependent (&v, 4 , name); }
51+ virtual void writeUint32 (const Uint32 v, const std::string name) { this ->writeEndianIndependent (&v, 4 , name); }
52+ virtual void writeFloat (const float v, const std::string name) { this ->writeEndianIndependent (&v, 4 , name); }
53+ virtual void writeDouble (const double v, const std::string name) { this ->writeEndianIndependent (&v, 8 , name); }
5454 virtual void writeText (const std::string &v, const std::string name);
5555
5656 virtual void flush (void ) { backend->flush (); }
@@ -85,16 +85,16 @@ namespace GAGCore
8585
8686 virtual void read (void *data, size_t size, const std::string name) { backend->read (data, size); }
8787
88- virtual void readEndianIndependant (void *v, size_t size, const std::string name);
88+ virtual void readEndianIndependent (void *v, size_t size, const std::string name);
8989
9090 virtual Sint8 readSint8 (const std::string name) { Sint8 i; this ->read (&i, 1 , name); return i; }
9191 virtual Uint8 readUint8 (const std::string name) { Uint8 i; this ->read (&i, 1 , name); return i; }
92- virtual Sint16 readSint16 (const std::string name) { Sint16 i; this ->readEndianIndependant (&i, 2 , name); return i; }
93- virtual Uint16 readUint16 (const std::string name) { Uint16 i; this ->readEndianIndependant (&i, 2 , name); return i; }
94- virtual Sint32 readSint32 (const std::string name) { Sint32 i; this ->readEndianIndependant (&i, 4 , name); return i; }
95- virtual Uint32 readUint32 (const std::string name) { Uint32 i; this ->readEndianIndependant (&i, 4 , name); return i; }
96- virtual float readFloat (const std::string name) { float f; this ->readEndianIndependant (&f, 4 , name); return f; }
97- virtual double readDouble (const std::string name) { double d; this ->readEndianIndependant (&d, 8 , name); return d; }
92+ virtual Sint16 readSint16 (const std::string name) { Sint16 i; this ->readEndianIndependent (&i, 2 , name); return i; }
93+ virtual Uint16 readUint16 (const std::string name) { Uint16 i; this ->readEndianIndependent (&i, 2 , name); return i; }
94+ virtual Sint32 readSint32 (const std::string name) { Sint32 i; this ->readEndianIndependent (&i, 4 , name); return i; }
95+ virtual Uint32 readUint32 (const std::string name) { Uint32 i; this ->readEndianIndependent (&i, 4 , name); return i; }
96+ virtual float readFloat (const std::string name) { float f; this ->readEndianIndependent (&f, 4 , name); return f; }
97+ virtual double readDouble (const std::string name) { double d; this ->readEndianIndependent (&d, 8 , name); return d; }
9898 virtual std::string readText (const std::string name);
9999
100100 virtual void readEnterSection (const std::string name) { }
0 commit comments