40class GEOS_DLL ByteOrderDataInStream {
44 ByteOrderDataInStream()
45 : ByteOrderDataInStream(
nullptr, 0) {};
47 ByteOrderDataInStream(
const unsigned char* buff,
size_t buffsz)
48 : byteOrder(getMachineByteOrder())
53 ~ByteOrderDataInStream() {};
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;