22 #include <geos/export.h>
23 #include <geos/io/ParseException.h>
24 #include <geos/io/ByteOrderValues.h>
25 #include <geos/util/Machine.h>
48 : byteOrder(getMachineByteOrder())
55 void setOrder(
int order)
60 unsigned char readByte()
75 auto ret = ByteOrderValues::getInt(buf , byteOrder);
80 uint32_t readUnsigned()
85 auto ret = ByteOrderValues::getUnsigned(buf , byteOrder);
96 auto ret = ByteOrderValues::getLong(buf, byteOrder);
106 auto ret = ByteOrderValues::getDouble(buf, byteOrder);
113 return static_cast<size_t>(end - buf);
119 const unsigned char* buf;
120 const unsigned char* end;
Allows reading an stream of primitive datatypes from an underlying istream, with the representation b...
Definition: ByteOrderDataInStream.h:40
Notifies a parsing error.
Definition: ParseException.h:33
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25