10 std::ostream& operator<<(std::ostream& os, Endian& endian);
18 inline void setEndian(Endian endian) { m_endian = endian; }
19 inline Endian endian()
const {
return m_endian; }
20 inline bool isBigEndian()
const {
return (m_endian == Endian::BigEndian); }
21 inline bool isLittleEndian()
const {
return (m_endian == Endian::LittleEndian); }
22 virtual void seek(atInt64, SeekOrigin) = 0;
23 virtual bool atEnd()
const = 0;
24 virtual atUint64 position()
const = 0;
25 virtual atUint64 length()
const = 0;
26 bool hasError()
const {
return m_hasError; }
28 void setError() { m_hasError =
true; }
29 bool m_hasError =
false;
30 #if __BYTE_ORDER == __BIG_ENDIAN 31 Endian m_endian = BigEndian;
33 Endian m_endian = LittleEndian;