| 1 | #cxx . . $ `<file>/io/binaryreader.h`/ifndef IOUTILITIES_BINERYREADER_H |
| 2 | #define IOUTILITIES_BINERYREADER_Hcxx . . $ `io/binaryreader.h:2:9`! |
| 3 | |
| 4 | #include "../conversion/binaryconversion.h"cxx . . $ `<file>/conversion/binaryconversion.h`/ |
| 5 | |
| 6 | #include <istream> |
| 7 | #include <string> |
| 8 | #include <vector> |
| 9 | |
| 10 | namespace CppUtilitiescxx . . $ CppUtilities/ { |
| 11 | class CPP_UTILITIES_EXPORTcxx . . $ `global.h:11:9`! BinaryReadercxx . . $ CppUtilities/BinaryReader# { |
| 12 | |
| 13 | public: |
| 14 | BinaryReadercxx . . $ CppUtilities/BinaryReader#BinaryReader(6301206cb502c0d2).(stdcxx . . $ std/::istreamcxx . . $ std/istream# *stream, bool giveOwnership = false); |
| 15 | BinaryReadercxx . . $ CppUtilities/BinaryReader#BinaryReader(307a3d5b7b64c4d0).(const BinaryReadercxx . . $ CppUtilities/BinaryReader# &other); |
| 16 | BinaryReadercxx . . $ CppUtilities/BinaryReader# &operatorcxx . . $ CppUtilities/BinaryReader#`operator=`(12ba9f822b4da5a2).=(const BinaryReadercxx . . $ CppUtilities/BinaryReader# &rhs) = delete; |
| 17 | ~cxx . . $ CppUtilities/BinaryReader#`~BinaryReader`(ced63f7c635d850d).BinaryReadercxx . . $ CppUtilities/BinaryReader#(); |
| 18 | |
| 19 | const stdcxx . . $ std/::istreamcxx . . $ std/istream# *streamcxx . . $ CppUtilities/BinaryReader#stream(fdd9014a872485c7).() const; |
| 20 | stdcxx . . $ std/::istreamcxx . . $ std/istream# *streamcxx . . $ CppUtilities/BinaryReader#stream(503d61e23c576050).(); |
| 21 | void setStreamcxx . . $ CppUtilities/BinaryReader#setStream(6301206cb502c0d2).(stdcxx . . $ std/::istreamcxx . . $ std/istream# *stream, bool giveOwnership = false); |
| 22 | bool hasOwnershipcxx . . $ CppUtilities/BinaryReader#hasOwnership(50ce9a9e25b4a850).() const; |
| 23 | void giveOwnershipcxx . . $ CppUtilities/BinaryReader#giveOwnership(49f6e7a06ebc5aa8).(); |
| 24 | void detatchOwnershipcxx . . $ CppUtilities/BinaryReader#detatchOwnership(49f6e7a06ebc5aa8).(); |
| 25 | bool failcxx . . $ CppUtilities/BinaryReader#fail(50ce9a9e25b4a850).() const; |
| 26 | bool eofcxx . . $ CppUtilities/BinaryReader#eof(50ce9a9e25b4a850).() const; |
| 27 | bool canReadcxx . . $ CppUtilities/BinaryReader#canRead(50ce9a9e25b4a850).() const; |
| 28 | stdcxx . . $ std/::istreamcxx . . $ std/istream#::pos_typecxx . . $ std/basic_istream#pos_type# readStreamsizecxx . . $ CppUtilities/BinaryReader#readStreamsize(a42da5486b886573).(); |
| 29 | stdcxx . . $ std/::istreamcxx . . $ std/istream#::pos_typecxx . . $ std/basic_istream#pos_type# readRemainingBytescxx . . $ CppUtilities/BinaryReader#readRemainingBytes(a42da5486b886573).(); |
| 30 | void readcxx . . $ CppUtilities/BinaryReader#read(c7fbbd4885b59140).(char *buffer, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# length); |
| 31 | void readcxx . . $ CppUtilities/BinaryReader#read(112694c12570de7f).(stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# *buffer, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# length); |
| 32 | void readcxx . . $ CppUtilities/BinaryReader#read(f604264f56c08d9b).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<char> &buffer, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# length); |
| 33 | stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# readInt16BEcxx . . $ CppUtilities/BinaryReader#readInt16BE(4c3706f7850cf040).(); |
| 34 | stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# readUInt16BEcxx . . $ CppUtilities/BinaryReader#readUInt16BE(32a7769d58713265).(); |
| 35 | stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# readInt24BEcxx . . $ CppUtilities/BinaryReader#readInt24BE(b126dc7c1de90089).(); |
| 36 | stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# readUInt24BEcxx . . $ CppUtilities/BinaryReader#readUInt24BE(db52760e79bf9054).(); |
| 37 | stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# readInt32BEcxx . . $ CppUtilities/BinaryReader#readInt32BE(b126dc7c1de90089).(); |
| 38 | stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# readUInt32BEcxx . . $ CppUtilities/BinaryReader#readUInt32BE(db52760e79bf9054).(); |
| 39 | stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# readInt40BEcxx . . $ CppUtilities/BinaryReader#readInt40BE(da6335ded91d79c2).(); |
| 40 | stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# readUInt40BEcxx . . $ CppUtilities/BinaryReader#readUInt40BE(f708dce9a8856c70).(); |
| 41 | stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# readInt56BEcxx . . $ CppUtilities/BinaryReader#readInt56BE(da6335ded91d79c2).(); |
| 42 | stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# readUInt56BEcxx . . $ CppUtilities/BinaryReader#readUInt56BE(f708dce9a8856c70).(); |
| 43 | stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# readInt64BEcxx . . $ CppUtilities/BinaryReader#readInt64BE(da6335ded91d79c2).(); |
| 44 | stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# readUInt64BEcxx . . $ CppUtilities/BinaryReader#readUInt64BE(f708dce9a8856c70).(); |
| 45 | stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# readVariableLengthUIntBEcxx . . $ CppUtilities/BinaryReader#readVariableLengthUIntBE(f708dce9a8856c70).(); |
| 46 | float readFloat32BEcxx . . $ CppUtilities/BinaryReader#readFloat32BE(9b8c9e39889c762c).(); |
| 47 | double readFloat64BEcxx . . $ CppUtilities/BinaryReader#readFloat64BE(31fa7155c10fdd13).(); |
| 48 | stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# readInt16LEcxx . . $ CppUtilities/BinaryReader#readInt16LE(4c3706f7850cf040).(); |
| 49 | stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# readUInt16LEcxx . . $ CppUtilities/BinaryReader#readUInt16LE(32a7769d58713265).(); |
| 50 | stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# readInt24LEcxx . . $ CppUtilities/BinaryReader#readInt24LE(b126dc7c1de90089).(); |
| 51 | stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# readUInt24LEcxx . . $ CppUtilities/BinaryReader#readUInt24LE(db52760e79bf9054).(); |
| 52 | stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# readInt32LEcxx . . $ CppUtilities/BinaryReader#readInt32LE(b126dc7c1de90089).(); |
| 53 | stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# readUInt32LEcxx . . $ CppUtilities/BinaryReader#readUInt32LE(db52760e79bf9054).(); |
| 54 | stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# readInt40LEcxx . . $ CppUtilities/BinaryReader#readInt40LE(da6335ded91d79c2).(); |
| 55 | stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# readUInt40LEcxx . . $ CppUtilities/BinaryReader#readUInt40LE(f708dce9a8856c70).(); |
| 56 | stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# readInt56LEcxx . . $ CppUtilities/BinaryReader#readInt56LE(da6335ded91d79c2).(); |
| 57 | stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# readUInt56LEcxx . . $ CppUtilities/BinaryReader#readUInt56LE(f708dce9a8856c70).(); |
| 58 | stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# readInt64LEcxx . . $ CppUtilities/BinaryReader#readInt64LE(da6335ded91d79c2).(); |
| 59 | stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# readUInt64LEcxx . . $ CppUtilities/BinaryReader#readUInt64LE(f708dce9a8856c70).(); |
| 60 | stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# readVariableLengthUIntLEcxx . . $ CppUtilities/BinaryReader#readVariableLengthUIntLE(f708dce9a8856c70).(); |
| 61 | float readFloat32LEcxx . . $ CppUtilities/BinaryReader#readFloat32LE(9b8c9e39889c762c).(); |
| 62 | double readFloat64LEcxx . . $ CppUtilities/BinaryReader#readFloat64LE(31fa7155c10fdd13).(); |
| 63 | char readCharcxx . . $ CppUtilities/BinaryReader#readChar(6e9c618e4dd2eafc).(); |
| 64 | stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# readBytecxx . . $ CppUtilities/BinaryReader#readByte(7c4be072098b358f).(); |
| 65 | bool readBoolcxx . . $ CppUtilities/BinaryReader#readBool(c9857a73d68e59ba).(); |
| 66 | stdcxx . . $ std/::stringcxx . . $ std/string# readLengthPrefixedStringcxx . . $ CppUtilities/BinaryReader#readLengthPrefixedString(efd28698952f529a).(); |
| 67 | stdcxx . . $ std/::stringcxx . . $ std/string# readStringcxx . . $ CppUtilities/BinaryReader#readString(354ce04007c9ea85).(stdcxx . . $ std/::size_tcxx . . $ std/size_t# length); |
| 68 | stdcxx . . $ std/::stringcxx . . $ std/string# readTerminatedStringcxx . . $ CppUtilities/BinaryReader#readTerminatedString(c73b3b872b62ea61).(stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# termination = 0); |
| 69 | stdcxx . . $ std/::stringcxx . . $ std/string# readTerminatedStringcxx . . $ CppUtilities/BinaryReader#readTerminatedString(99e6a4b156ffda97).(stdcxx . . $ std/::size_tcxx . . $ std/size_t# maxBytesToRead, stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# termination = 0); |
| 70 | stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# readSynchsafeUInt32BEcxx . . $ CppUtilities/BinaryReader#readSynchsafeUInt32BE(db52760e79bf9054).(); |
| 71 | float readFixed8BEcxx . . $ CppUtilities/BinaryReader#readFixed8BE(9b8c9e39889c762c).(); |
| 72 | float readFixed16BEcxx . . $ CppUtilities/BinaryReader#readFixed16BE(9b8c9e39889c762c).(); |
| 73 | stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# readSynchsafeUInt32LEcxx . . $ CppUtilities/BinaryReader#readSynchsafeUInt32LE(db52760e79bf9054).(); |
| 74 | float readFixed8LEcxx . . $ CppUtilities/BinaryReader#readFixed8LE(9b8c9e39889c762c).(); |
| 75 | float readFixed16LEcxx . . $ CppUtilities/BinaryReader#readFixed16LE(9b8c9e39889c762c).(); |
| 76 | stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# readCrc32cxx . . $ CppUtilities/BinaryReader#readCrc32(ea88b852781e8a38).(stdcxx . . $ std/::size_tcxx . . $ std/size_t# length); |
| 77 | static stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# computeCrc32cxx . . $ CppUtilities/BinaryReader#computeCrc32(b323a3098472c9f4).(const char *buffer, stdcxx . . $ std/::size_tcxx . . $ std/size_t# length); |
| 78 | static const stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# crc32Tablecxx . . $ CppUtilities/BinaryReader#crc32Table.[]; |
| 79 | |
| 80 | // declare further overloads for read() to ease use of BinaryReader in templates |
| 81 | void readcxx . . $ CppUtilities/BinaryReader#read(cd772af0e91b891f).(char &oneCharacter); |
| 82 | void readcxx . . $ CppUtilities/BinaryReader#read(c381bd11c36b427a).(stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# &oneByte); |
| 83 | void readcxx . . $ CppUtilities/BinaryReader#read(efd773ac1009b4d9).(bool &oneBool); |
| 84 | void readcxx . . $ CppUtilities/BinaryReader#read(80d0450aec2fd74).(stdcxx . . $ std/::stringcxx . . $ std/string# &lengthPrefixedString); |
| 85 | void readcxx . . $ CppUtilities/BinaryReader#read(5a058a4118a5d50d).(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# &one16BitInt); |
| 86 | void readcxx . . $ CppUtilities/BinaryReader#read(9d635b13b9faa422).(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# &one16BitUInt); |
| 87 | void readcxx . . $ CppUtilities/BinaryReader#read(2afed6f74e8a6d90).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# &one32BitInt); |
| 88 | void readcxx . . $ CppUtilities/BinaryReader#read(db0e23f8c3d03d8b).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# &one32BitUInt); |
| 89 | void readcxx . . $ CppUtilities/BinaryReader#read(d30c39de810a28fe).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# &one64BitInt); |
| 90 | void readcxx . . $ CppUtilities/BinaryReader#read(966cfd7706ccae96).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# &one64BitUInt); |
| 91 | void readcxx . . $ CppUtilities/BinaryReader#read(48c035035a698d35).(float &one32BitFloat); |
| 92 | void readcxx . . $ CppUtilities/BinaryReader#read(fa22aefff6cb375c).(double &one64BitFloat); |
| 93 | |
| 94 | private: |
| 95 | void bufferVariableLengthIntegercxx . . $ CppUtilities/BinaryReader#bufferVariableLengthInteger(49f6e7a06ebc5aa8).(); |
| 96 | |
| 97 | stdcxx . . $ std/::istreamcxx . . $ std/istream# *m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.; |
| 98 | bool m_ownershipcxx . . $ CppUtilities/BinaryReader#m_ownership.; |
| 99 | char m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.[8]; |
| 100 | }; |
| 101 | |
| 102 | /*! |
| 103 | * \brief Constructs a new BinaryReader. |
| 104 | * \param stream Specifies the stream to read from. |
| 105 | * \param giveOwnership Specifies whether the reader should take ownership. |
| 106 | */ |
| 107 | inline BinaryReadercxx . . $ CppUtilities/BinaryReader#::BinaryReadercxx . . $ CppUtilities/BinaryReader#BinaryReader(6301206cb502c0d2).(stdcxx . . $ std/::istreamcxx . . $ std/istream# *stream, bool giveOwnership) |
| 108 | : m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.(stream) |
| 109 | , m_ownershipcxx . . $ CppUtilities/BinaryReader#m_ownership.(giveOwnership) |
| 110 | { |
| 111 | } |
| 112 | |
| 113 | /*! |
| 114 | * \brief Copies the specified BinaryReader. |
| 115 | * \remarks The copy will not take ownership over the stream. |
| 116 | */ |
| 117 | inline BinaryReadercxx . . $ CppUtilities/BinaryReader#::BinaryReadercxx . . $ CppUtilities/BinaryReader#BinaryReader(307a3d5b7b64c4d0).(const BinaryReadercxx . . $ CppUtilities/BinaryReader# &other) |
| 118 | : m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.(other.m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.) |
| 119 | , m_ownershipcxx . . $ CppUtilities/BinaryReader#m_ownership.(false) |
| 120 | { |
| 121 | } |
| 122 | |
| 123 | /*! |
| 124 | * \brief Destroys the BinaryReader. |
| 125 | */ |
| 126 | inline BinaryReadercxx . . $ CppUtilities/BinaryReader#::~cxx . . $ CppUtilities/BinaryReader#`~BinaryReader`(ced63f7c635d850d).BinaryReadercxx . . $ CppUtilities/BinaryReader#() |
| 127 | { |
| 128 | if (m_ownershipcxx . . $ CppUtilities/BinaryReader#m_ownership.) { |
| 129 | delete m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.; |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | /*! |
| 134 | * \brief Returns a pointer to the stream the reader will read from when calling one of the read-methods. |
| 135 | * |
| 136 | * \sa setStream() |
| 137 | */ |
| 138 | inline stdcxx . . $ std/::istreamcxx . . $ std/istream# *BinaryReadercxx . . $ CppUtilities/BinaryReader#::streamcxx . . $ CppUtilities/BinaryReader#stream(503d61e23c576050).() |
| 139 | { |
| 140 | return m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.; |
| 141 | } |
| 142 | |
| 143 | /*! |
| 144 | * \brief Returns a pointer to the stream the reader will read from when calling one of the read-methods. |
| 145 | * |
| 146 | * \sa setStream() |
| 147 | */ |
| 148 | inline const stdcxx . . $ std/::istreamcxx . . $ std/istream# *BinaryReadercxx . . $ CppUtilities/BinaryReader#::streamcxx . . $ CppUtilities/BinaryReader#stream(fdd9014a872485c7).() const |
| 149 | { |
| 150 | return m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.; |
| 151 | } |
| 152 | |
| 153 | /*! |
| 154 | * \brief Returns whether the reader takes ownership over the assigned stream. |
| 155 | * |
| 156 | * \sa setStream() |
| 157 | * \sa giveOwnership() |
| 158 | * \sa detatchOwnership() |
| 159 | */ |
| 160 | inline bool BinaryReadercxx . . $ CppUtilities/BinaryReader#::hasOwnershipcxx . . $ CppUtilities/BinaryReader#hasOwnership(50ce9a9e25b4a850).() const |
| 161 | { |
| 162 | return m_ownershipcxx . . $ CppUtilities/BinaryReader#m_ownership.; |
| 163 | } |
| 164 | |
| 165 | /*! |
| 166 | * \brief The reader will take ownership over the assigned stream. |
| 167 | * |
| 168 | * \sa setStream() |
| 169 | * \sa detatchOwnership() |
| 170 | * \sa hasOwnership() |
| 171 | */ |
| 172 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::giveOwnershipcxx . . $ CppUtilities/BinaryReader#giveOwnership(49f6e7a06ebc5aa8).() |
| 173 | { |
| 174 | if (m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.) { |
| 175 | m_ownershipcxx . . $ CppUtilities/BinaryReader#m_ownership. = true; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | /*! |
| 180 | * \brief The reader will not take ownership over the assigned stream. |
| 181 | * |
| 182 | * \sa setStream() |
| 183 | * \sa giveOwnership() |
| 184 | * \sa hasOwnership() |
| 185 | */ |
| 186 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::detatchOwnershipcxx . . $ CppUtilities/BinaryReader#detatchOwnership(49f6e7a06ebc5aa8).() |
| 187 | { |
| 188 | m_ownershipcxx . . $ CppUtilities/BinaryReader#m_ownership. = false; |
| 189 | } |
| 190 | |
| 191 | /*! |
| 192 | * \brief Returns an indication whether the fail bit of the assigned stream is set. |
| 193 | */ |
| 194 | inline bool BinaryReadercxx . . $ CppUtilities/BinaryReader#::failcxx . . $ CppUtilities/BinaryReader#fail(50ce9a9e25b4a850).() const |
| 195 | { |
| 196 | return m_streamcxx . . $ CppUtilities/BinaryReader#m_stream. ? m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->failcxx . . $ std/basic_ios#fail(50ce9a9e25b4a850).() : false; |
| 197 | } |
| 198 | |
| 199 | /*! |
| 200 | * \brief Returns an indication whether the end-of-stream bit of the assigned stream is set. |
| 201 | */ |
| 202 | inline bool BinaryReadercxx . . $ CppUtilities/BinaryReader#::eofcxx . . $ CppUtilities/BinaryReader#eof(50ce9a9e25b4a850).() const |
| 203 | { |
| 204 | return m_streamcxx . . $ CppUtilities/BinaryReader#m_stream. && m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->eofcxx . . $ std/basic_ios#eof(50ce9a9e25b4a850).(); |
| 205 | } |
| 206 | |
| 207 | /*! |
| 208 | * \brief Returns an indication whether a stream is assigned the reader can read from. |
| 209 | */ |
| 210 | inline bool BinaryReadercxx . . $ CppUtilities/BinaryReader#::canReadcxx . . $ CppUtilities/BinaryReader#canRead(50ce9a9e25b4a850).() const |
| 211 | { |
| 212 | return m_streamcxx . . $ CppUtilities/BinaryReader#m_stream. && m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->goodcxx . . $ std/basic_ios#good(50ce9a9e25b4a850).(); |
| 213 | } |
| 214 | |
| 215 | /*! |
| 216 | * \brief Reads the specified number of characters from the stream in the character array. |
| 217 | */ |
| 218 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(c7fbbd4885b59140).(char *buffer, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# length) |
| 219 | { |
| 220 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(buffer, length); |
| 221 | } |
| 222 | |
| 223 | /*! |
| 224 | * \brief Reads the specified number of bytes from the stream in the character array. |
| 225 | */ |
| 226 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(112694c12570de7f).(stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# *buffer, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# length) |
| 227 | { |
| 228 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(reinterpret_cast<char *>(buffer), length); |
| 229 | } |
| 230 | |
| 231 | /*! |
| 232 | * \brief Reads the specified number of bytes from the stream in the specified \a buffer. |
| 233 | */ |
| 234 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(f604264f56c08d9b).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<char> &buffer, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# length) |
| 235 | { |
| 236 | buffer.resizecxx . . $ std/vector#resize(2c44cd906ae4e829).(static_cast<stdcxx . . $ std/::vectorcxx . . $ std/vector#<char>::size_typecxx . . $ std/vector#size_type#>(length)); |
| 237 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(buffer.datacxx . . $ std/vector#data(258ee1c9e0a18a5c).(), length); |
| 238 | } |
| 239 | |
| 240 | /*! |
| 241 | * \brief Reads a 16-bit big endian signed integer from the current stream and advances the current position of the stream by two bytes. |
| 242 | */ |
| 243 | inline stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt16BEcxx . . $ CppUtilities/BinaryReader#readInt16BE(4c3706f7850cf040).() |
| 244 | { |
| 245 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t#)); |
| 246 | return BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::int16_tcxx . . $ std/int16_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 247 | } |
| 248 | |
| 249 | /*! |
| 250 | * \brief Reads a 16-bit big endian unsigned integer from the current stream and advances the current position of the stream by two bytes. |
| 251 | */ |
| 252 | inline stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt16BEcxx . . $ CppUtilities/BinaryReader#readUInt16BE(32a7769d58713265).() |
| 253 | { |
| 254 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t#)); |
| 255 | return BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 256 | } |
| 257 | |
| 258 | /*! |
| 259 | * \brief Reads a 24-bit big endian signed integer from the current stream and advances the current position of the stream by three bytes. |
| 260 | */ |
| 261 | inline stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt24BEcxx . . $ CppUtilities/BinaryReader#readInt24BE(b126dc7c1de90089).() |
| 262 | { |
| 263 | *m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. = 0; |
| 264 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 1, 3); |
| 265 | auto val = BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::int32_tcxx . . $ std/int32_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 266 | if (val >= 0x800000) { |
| 267 | val = -(0x1000000 - val); |
| 268 | } |
| 269 | return val; |
| 270 | } |
| 271 | |
| 272 | /*! |
| 273 | * \brief Reads a 24-bit big endian unsigned integer from the current stream and advances the current position of the stream by three bytes. |
| 274 | */ |
| 275 | inline stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt24BEcxx . . $ CppUtilities/BinaryReader#readUInt24BE(db52760e79bf9054).() |
| 276 | { |
| 277 | *m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. = 0; |
| 278 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 1, 3); |
| 279 | return BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 280 | } |
| 281 | |
| 282 | /*! |
| 283 | * \brief Reads a 32-bit big endian signed integer from the current stream and advances the current position of the stream by four bytes. |
| 284 | */ |
| 285 | inline stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt32BEcxx . . $ CppUtilities/BinaryReader#readInt32BE(b126dc7c1de90089).() |
| 286 | { |
| 287 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t#)); |
| 288 | return BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::int32_tcxx . . $ std/int32_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 289 | } |
| 290 | |
| 291 | /*! |
| 292 | * \brief Reads a 32-bit big endian unsigned integer from the current stream and advances the current position of the stream by four bytes. |
| 293 | */ |
| 294 | inline stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt32BEcxx . . $ CppUtilities/BinaryReader#readUInt32BE(db52760e79bf9054).() |
| 295 | { |
| 296 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t#)); |
| 297 | return BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 298 | } |
| 299 | |
| 300 | /*! |
| 301 | * \brief Reads a 40-bit big endian signed integer from the current stream and advances the current position of the stream by five bytes. |
| 302 | */ |
| 303 | inline stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt40BEcxx . . $ CppUtilities/BinaryReader#readInt40BE(da6335ded91d79c2).() |
| 304 | { |
| 305 | *m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. = *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 1) = *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 2) = 0; |
| 306 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 3, 5); |
| 307 | auto val = BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::int64_tcxx . . $ std/int64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 308 | if (val >= 0x8000000000) { |
| 309 | val = -(0x10000000000 - val); |
| 310 | } |
| 311 | return val; |
| 312 | } |
| 313 | |
| 314 | /*! |
| 315 | * \brief Reads a 40-bit big endian unsigned integer from the current stream and advances the current position of the stream by five bytes. |
| 316 | */ |
| 317 | inline stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt40BEcxx . . $ CppUtilities/BinaryReader#readUInt40BE(f708dce9a8856c70).() |
| 318 | { |
| 319 | *m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. = *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 1) = *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 2) = 0; |
| 320 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 3, 5); |
| 321 | return BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 322 | } |
| 323 | |
| 324 | /*! |
| 325 | * \brief Reads a 56-bit big endian signed integer from the current stream and advances the current position of the stream by seven bytes. |
| 326 | */ |
| 327 | inline stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt56BEcxx . . $ CppUtilities/BinaryReader#readInt56BE(da6335ded91d79c2).() |
| 328 | { |
| 329 | *m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. = 0; |
| 330 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 1, 7); |
| 331 | auto val = BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::int64_tcxx . . $ std/int64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 332 | if (val >= 0x80000000000000) { |
| 333 | val = -(0x100000000000000 - val); |
| 334 | } |
| 335 | return val; |
| 336 | } |
| 337 | |
| 338 | /*! |
| 339 | * \brief Reads a 56-bit big endian unsigned integer from the current stream and advances the current position of the stream by seven bytes. |
| 340 | */ |
| 341 | inline stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt56BEcxx . . $ CppUtilities/BinaryReader#readUInt56BE(f708dce9a8856c70).() |
| 342 | { |
| 343 | *m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. = 0; |
| 344 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 1, 7); |
| 345 | return BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 346 | } |
| 347 | |
| 348 | /*! |
| 349 | * \brief Reads a 64-bit big endian signed integer from the current stream and advances the current position of the stream by eight bytes. |
| 350 | */ |
| 351 | inline stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt64BEcxx . . $ CppUtilities/BinaryReader#readInt64BE(da6335ded91d79c2).() |
| 352 | { |
| 353 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t#)); |
| 354 | return BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::int64_tcxx . . $ std/int64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 355 | } |
| 356 | |
| 357 | /*! |
| 358 | * \brief Reads a 64-bit big endian unsigned integer from the current stream and advances the current position of the stream by eight bytes. |
| 359 | */ |
| 360 | inline stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt64BEcxx . . $ CppUtilities/BinaryReader#readUInt64BE(f708dce9a8856c70).() |
| 361 | { |
| 362 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#)); |
| 363 | return BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 364 | } |
| 365 | |
| 366 | /*! |
| 367 | * \brief Reads an up to 8 byte long big endian unsigned integer from the current stream and advances the current position of the stream by one to eight byte. |
| 368 | * \throws Throws ConversionException if the size of the integer exceeds the maximum. |
| 369 | */ |
| 370 | inline stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readVariableLengthUIntBEcxx . . $ CppUtilities/BinaryReader#readVariableLengthUIntBE(f708dce9a8856c70).() |
| 371 | { |
| 372 | bufferVariableLengthIntegercxx . . $ CppUtilities/BinaryReader#bufferVariableLengthInteger(49f6e7a06ebc5aa8).(); |
| 373 | return BEcxx . . $ CppUtilities/BE/::toInt<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 374 | } |
| 375 | |
| 376 | /*! |
| 377 | * \brief Reads a 32-bit big endian floating point value from the current stream and advances the current position of the stream by four bytes. |
| 378 | */ |
| 379 | inline float BinaryReadercxx . . $ CppUtilities/BinaryReader#::readFloat32BEcxx . . $ CppUtilities/BinaryReader#readFloat32BE(9b8c9e39889c762c).() |
| 380 | { |
| 381 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(float)); |
| 382 | return BEcxx . . $ CppUtilities/BE/::toFloat32(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 383 | } |
| 384 | |
| 385 | /*! |
| 386 | * \brief Reads a 64-bit big endian floating point value from the current stream and advances the current position of the stream by eight bytes. |
| 387 | */ |
| 388 | inline double BinaryReadercxx . . $ CppUtilities/BinaryReader#::readFloat64BEcxx . . $ CppUtilities/BinaryReader#readFloat64BE(31fa7155c10fdd13).() |
| 389 | { |
| 390 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(double)); |
| 391 | return BEcxx . . $ CppUtilities/BE/::toFloat64(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 392 | } |
| 393 | |
| 394 | /*! |
| 395 | * \brief Reads a 16-bit little endian signed integer from the current stream and advances the current position of the stream by two bytes. |
| 396 | */ |
| 397 | inline stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt16LEcxx . . $ CppUtilities/BinaryReader#readInt16LE(4c3706f7850cf040).() |
| 398 | { |
| 399 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t#)); |
| 400 | return LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::int16_tcxx . . $ std/int16_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 401 | } |
| 402 | |
| 403 | /*! |
| 404 | * \brief Reads a 16-bit little endian unsigned integer from the current stream and advances the current position of the stream by two bytes. |
| 405 | */ |
| 406 | inline stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt16LEcxx . . $ CppUtilities/BinaryReader#readUInt16LE(32a7769d58713265).() |
| 407 | { |
| 408 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t#)); |
| 409 | return LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 410 | } |
| 411 | |
| 412 | /*! |
| 413 | * \brief Reads a 24-bit little endian signed integer from the current stream and advances the current position of the stream by three bytes. |
| 414 | */ |
| 415 | inline stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt24LEcxx . . $ CppUtilities/BinaryReader#readInt24LE(b126dc7c1de90089).() |
| 416 | { |
| 417 | *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 3) = 0; |
| 418 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., 3); |
| 419 | auto val = LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::int32_tcxx . . $ std/int32_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 420 | if (val >= 0x800000) { |
| 421 | val = -(0x1000000 - val); |
| 422 | } |
| 423 | return val; |
| 424 | } |
| 425 | |
| 426 | /*! |
| 427 | * \brief Reads a 24-bit little endian unsigned integer from the current stream and advances the current position of the stream by three bytes. |
| 428 | */ |
| 429 | inline stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt24LEcxx . . $ CppUtilities/BinaryReader#readUInt24LE(db52760e79bf9054).() |
| 430 | { |
| 431 | *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 3) = 0; |
| 432 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., 3); |
| 433 | return LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 434 | } |
| 435 | |
| 436 | /*! |
| 437 | * \brief Reads a 32-bit little endian signed integer from the current stream and advances the current position of the stream by four bytes. |
| 438 | */ |
| 439 | inline stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt32LEcxx . . $ CppUtilities/BinaryReader#readInt32LE(b126dc7c1de90089).() |
| 440 | { |
| 441 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t#)); |
| 442 | return LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::int32_tcxx . . $ std/int32_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 443 | } |
| 444 | |
| 445 | /*! |
| 446 | * \brief Reads a 32-bit little endian unsigned integer from the current stream and advances the current position of the stream by four bytes. |
| 447 | */ |
| 448 | inline stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt32LEcxx . . $ CppUtilities/BinaryReader#readUInt32LE(db52760e79bf9054).() |
| 449 | { |
| 450 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t#)); |
| 451 | return LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 452 | } |
| 453 | |
| 454 | /*! |
| 455 | * \brief Reads a 40-bit little endian signed integer from the current stream and advances the current position of the stream by five bytes. |
| 456 | */ |
| 457 | inline stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt40LEcxx . . $ CppUtilities/BinaryReader#readInt40LE(da6335ded91d79c2).() |
| 458 | { |
| 459 | *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 5) = *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 6) = *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 7) = 0; |
| 460 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., 5); |
| 461 | auto val = LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::int64_tcxx . . $ std/int64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 462 | if (val >= 0x8000000000) { |
| 463 | val = -(0x10000000000 - val); |
| 464 | } |
| 465 | return val; |
| 466 | } |
| 467 | |
| 468 | /*! |
| 469 | * \brief Reads a 40-bit little endian unsigned integer from the current stream and advances the current position of the stream by five bytes. |
| 470 | */ |
| 471 | inline stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt40LEcxx . . $ CppUtilities/BinaryReader#readUInt40LE(f708dce9a8856c70).() |
| 472 | { |
| 473 | *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 5) = *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 6) = *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 7) = 0; |
| 474 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., 5); |
| 475 | return LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 476 | } |
| 477 | |
| 478 | /*! |
| 479 | * \brief Reads a 56-bit little endian signed integer from the current stream and advances the current position of the stream by seven bytes. |
| 480 | */ |
| 481 | inline stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt56LEcxx . . $ CppUtilities/BinaryReader#readInt56LE(da6335ded91d79c2).() |
| 482 | { |
| 483 | *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 7) = 0; |
| 484 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., 7); |
| 485 | auto val = LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::int64_tcxx . . $ std/int64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 486 | if (val >= 0x80000000000000) { |
| 487 | val = -(0x100000000000000 - val); |
| 488 | } |
| 489 | return val; |
| 490 | } |
| 491 | |
| 492 | /*! |
| 493 | * \brief Reads a 56-bit little endian unsigned integer from the current stream and advances the current position of the stream by seven bytes. |
| 494 | */ |
| 495 | inline stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt56LEcxx . . $ CppUtilities/BinaryReader#readUInt56LE(f708dce9a8856c70).() |
| 496 | { |
| 497 | *(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer. + 7) = 0; |
| 498 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., 7); |
| 499 | return LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 500 | } |
| 501 | |
| 502 | /*! |
| 503 | * \brief Reads a 64-bit little endian signed integer from the current stream and advances the current position of the stream by eight bytes. |
| 504 | */ |
| 505 | inline stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readInt64LEcxx . . $ CppUtilities/BinaryReader#readInt64LE(da6335ded91d79c2).() |
| 506 | { |
| 507 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t#)); |
| 508 | return LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::int64_tcxx . . $ std/int64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 509 | } |
| 510 | |
| 511 | /*! |
| 512 | * \brief Reads a 64-bit little endian unsigned integer from the current stream and advances the current position of the stream by eight bytes. |
| 513 | */ |
| 514 | inline stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readUInt64LEcxx . . $ CppUtilities/BinaryReader#readUInt64LE(f708dce9a8856c70).() |
| 515 | { |
| 516 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#)); |
| 517 | return LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 518 | } |
| 519 | |
| 520 | /*! |
| 521 | * \brief Reads an up to 8 byte long little endian unsigned integer from the current stream and advances the current position of the stream by one to eight byte. |
| 522 | * \throws Throws ConversionException if the size of the integer exceeds the maximum. |
| 523 | */ |
| 524 | inline stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readVariableLengthUIntLEcxx . . $ CppUtilities/BinaryReader#readVariableLengthUIntLE(f708dce9a8856c70).() |
| 525 | { |
| 526 | bufferVariableLengthIntegercxx . . $ CppUtilities/BinaryReader#bufferVariableLengthInteger(49f6e7a06ebc5aa8).(); |
| 527 | return LEcxx . . $ CppUtilities/LE/::toIntcxx . . $ CppUtilities/LE/toInt(cb6fd9cdaeafa88d).<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 528 | } |
| 529 | |
| 530 | /*! |
| 531 | * \brief Reads a 32-bit little endian floating point value from the current stream and advances the current position of the stream by four bytes. |
| 532 | */ |
| 533 | inline float BinaryReadercxx . . $ CppUtilities/BinaryReader#::readFloat32LEcxx . . $ CppUtilities/BinaryReader#readFloat32LE(9b8c9e39889c762c).() |
| 534 | { |
| 535 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(float)); |
| 536 | return LEcxx . . $ CppUtilities/LE/::toFloat32cxx . . $ CppUtilities/LE/toFloat32(795d03e4fcc0e9d0).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 537 | } |
| 538 | |
| 539 | /*! |
| 540 | * \brief Reads a 64-bit little endian floating point value from the current stream and advances the current position of the stream by eight bytes. |
| 541 | */ |
| 542 | inline double BinaryReadercxx . . $ CppUtilities/BinaryReader#::readFloat64LEcxx . . $ CppUtilities/BinaryReader#readFloat64LE(31fa7155c10fdd13).() |
| 543 | { |
| 544 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(double)); |
| 545 | return LEcxx . . $ CppUtilities/LE/::toFloat64cxx . . $ CppUtilities/LE/toFloat64(9a18bdb0e56c1bc2).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.); |
| 546 | } |
| 547 | |
| 548 | /*! |
| 549 | * \brief Reads a single character from the current stream and advances the current position of the stream by one byte. |
| 550 | */ |
| 551 | inline char BinaryReadercxx . . $ CppUtilities/BinaryReader#::readCharcxx . . $ CppUtilities/BinaryReader#readChar(6e9c618e4dd2eafc).() |
| 552 | { |
| 553 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(char)); |
| 554 | return m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.[0]; |
| 555 | } |
| 556 | |
| 557 | /*! |
| 558 | * \brief Reads a single byte/unsigned character from the current stream and advances the current position of the stream by one byte. |
| 559 | */ |
| 560 | inline uint8_tcxx . . $ uint8_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readBytecxx . . $ CppUtilities/BinaryReader#readByte(7c4be072098b358f).() |
| 561 | { |
| 562 | m_streamcxx . . $ CppUtilities/BinaryReader#m_stream.->readcxx . . $ std/basic_istream#read(ec7d6f01d31dcb96).(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer., sizeof(char)); |
| 563 | return static_cast<stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t#>(m_buffercxx . . $ CppUtilities/BinaryReader#m_buffer.[0]); |
| 564 | } |
| 565 | |
| 566 | /*! |
| 567 | * \brief Reads a boolean value from the current stream and advances the current position of the stream by one byte. |
| 568 | * \sa BitReader |
| 569 | */ |
| 570 | inline bool BinaryReadercxx . . $ CppUtilities/BinaryReader#::readBoolcxx . . $ CppUtilities/BinaryReader#readBool(c9857a73d68e59ba).() |
| 571 | { |
| 572 | return readBytecxx . . $ CppUtilities/BinaryReader#readByte(7c4be072098b358f).() != 0; |
| 573 | } |
| 574 | |
| 575 | /*! |
| 576 | * \brief Reads a length prefixed string from the current stream. |
| 577 | * \remarks Reads the length prefix from the stream and then a string of the denoted length. |
| 578 | * Advances the current position of the stream by the denoted length of the string plus the prefix length. |
| 579 | */ |
| 580 | inline stdcxx . . $ std/::stringcxx . . $ std/string# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readLengthPrefixedStringcxx . . $ CppUtilities/BinaryReader#readLengthPrefixedString(efd28698952f529a).() |
| 581 | { |
| 582 | return readStringcxx . . $ CppUtilities/BinaryReader#readString(354ce04007c9ea85).(readVariableLengthUIntBEcxx . . $ CppUtilities/BinaryReader#readVariableLengthUIntBE(f708dce9a8856c70).()); |
| 583 | } |
| 584 | |
| 585 | /*! |
| 586 | * \brief Reads a 32-bit big endian synchsafe integer from the current stream and advances the current position of the stream by four bytes. |
| 587 | * \remarks Synchsafe integers appear in ID3 tags that are attached to an MP3 file. |
| 588 | * \sa <a href="http://id3.org/id3v2.4.0-structure">ID3 tag version 2.4.0 - Main Structure</a> |
| 589 | */ |
| 590 | inline stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readSynchsafeUInt32BEcxx . . $ CppUtilities/BinaryReader#readSynchsafeUInt32BE(db52760e79bf9054).() |
| 591 | { |
| 592 | return toNormalIntcxx . . $ CppUtilities/toNormalInt(2141b656ce2cc063).(readUInt32BEcxx . . $ CppUtilities/BinaryReader#readUInt32BE(db52760e79bf9054).()); |
| 593 | } |
| 594 | |
| 595 | /*! |
| 596 | * \brief Reads a 8.8 fixed point big endian representation from the current stream and returns it as 32-bit floating point value. |
| 597 | */ |
| 598 | inline float BinaryReadercxx . . $ CppUtilities/BinaryReader#::readFixed8BEcxx . . $ CppUtilities/BinaryReader#readFixed8BE(9b8c9e39889c762c).() |
| 599 | { |
| 600 | return toFloat32cxx . . $ CppUtilities/toFloat32(9a38df040a81ca35).(readUInt16BEcxx . . $ CppUtilities/BinaryReader#readUInt16BE(32a7769d58713265).()); |
| 601 | } |
| 602 | |
| 603 | /*! |
| 604 | * \brief Reads a 16.16 fixed point big endian representation from the current stream and returns it as 32-bit floating point value. |
| 605 | */ |
| 606 | inline float BinaryReadercxx . . $ CppUtilities/BinaryReader#::readFixed16BEcxx . . $ CppUtilities/BinaryReader#readFixed16BE(9b8c9e39889c762c).() |
| 607 | { |
| 608 | return toFloat32cxx . . $ CppUtilities/toFloat32(df5a737eaec60ebb).(readUInt32BEcxx . . $ CppUtilities/BinaryReader#readUInt32BE(db52760e79bf9054).()); |
| 609 | } |
| 610 | |
| 611 | /*! |
| 612 | * \brief Reads a 32-bit little endian synchsafe integer from the current stream and advances the current position of the stream by four bytes. |
| 613 | * \remarks Synchsafe integers appear in ID3 tags that are attached to an MP3 file. |
| 614 | * \sa <a href="http://id3.org/id3v2.4.0-structure">ID3 tag version 2.4.0 - Main Structure</a> |
| 615 | */ |
| 616 | inline stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# BinaryReadercxx . . $ CppUtilities/BinaryReader#::readSynchsafeUInt32LEcxx . . $ CppUtilities/BinaryReader#readSynchsafeUInt32LE(db52760e79bf9054).() |
| 617 | { |
| 618 | return toNormalIntcxx . . $ CppUtilities/toNormalInt(2141b656ce2cc063).(readUInt32LEcxx . . $ CppUtilities/BinaryReader#readUInt32LE(db52760e79bf9054).()); |
| 619 | } |
| 620 | |
| 621 | /*! |
| 622 | * \brief Reads a 8.8 fixed point little endian representation from the current stream and returns it as 32-bit floating point value. |
| 623 | */ |
| 624 | inline float BinaryReadercxx . . $ CppUtilities/BinaryReader#::readFixed8LEcxx . . $ CppUtilities/BinaryReader#readFixed8LE(9b8c9e39889c762c).() |
| 625 | { |
| 626 | return toFloat32cxx . . $ CppUtilities/toFloat32(9a38df040a81ca35).(readUInt16LEcxx . . $ CppUtilities/BinaryReader#readUInt16LE(32a7769d58713265).()); |
| 627 | } |
| 628 | |
| 629 | /*! |
| 630 | * \brief Reads a 16.16 fixed point little endian representation from the current stream and returns it as 32-bit floating point value. |
| 631 | */ |
| 632 | inline float BinaryReadercxx . . $ CppUtilities/BinaryReader#::readFixed16LEcxx . . $ CppUtilities/BinaryReader#readFixed16LE(9b8c9e39889c762c).() |
| 633 | { |
| 634 | return toFloat32cxx . . $ CppUtilities/toFloat32(df5a737eaec60ebb).(readUInt32LEcxx . . $ CppUtilities/BinaryReader#readUInt32LE(db52760e79bf9054).()); |
| 635 | } |
| 636 | |
| 637 | /*! |
| 638 | * \brief Reads a single character from the current stream and advances the current position of the stream by one byte. |
| 639 | */ |
| 640 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(cd772af0e91b891f).(char &oneCharacter) |
| 641 | { |
| 642 | oneCharacter = readCharcxx . . $ CppUtilities/BinaryReader#readChar(6e9c618e4dd2eafc).(); |
| 643 | } |
| 644 | |
| 645 | /*! |
| 646 | * \brief Reads a single byte/unsigned character from the current stream and advances the current position of the stream by one byte. |
| 647 | */ |
| 648 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(c381bd11c36b427a).(stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# &oneByte) |
| 649 | { |
| 650 | oneByte = readBytecxx . . $ CppUtilities/BinaryReader#readByte(7c4be072098b358f).(); |
| 651 | } |
| 652 | |
| 653 | /*! |
| 654 | * \brief Reads a boolean value from the current stream and advances the current position of the stream by one byte. |
| 655 | * \sa BitReader |
| 656 | */ |
| 657 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(efd773ac1009b4d9).(bool &oneBool) |
| 658 | { |
| 659 | oneBool = readBoolcxx . . $ CppUtilities/BinaryReader#readBool(c9857a73d68e59ba).(); |
| 660 | } |
| 661 | |
| 662 | /*! |
| 663 | * \brief Reads a length prefixed string from the current stream. |
| 664 | * |
| 665 | * \remarks Reads the length prefix from the stream and then a string of the denoted length. |
| 666 | * Advances the current position of the stream by the denoted length of the string plus the prefix length. |
| 667 | */ |
| 668 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(80d0450aec2fd74).(stdcxx . . $ std/::stringcxx . . $ std/string# &lengthPrefixedString) |
| 669 | { |
| 670 | lengthPrefixedString =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). readLengthPrefixedStringcxx . . $ CppUtilities/BinaryReader#readLengthPrefixedString(efd28698952f529a).(); |
| 671 | } |
| 672 | |
| 673 | /*! |
| 674 | * \brief Reads a 16-bit big endian signed integer from the current stream and advances the current position of the stream by two bytes. |
| 675 | */ |
| 676 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(5a058a4118a5d50d).(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# &one16BitInt) |
| 677 | { |
| 678 | one16BitInt = readInt16BEcxx . . $ CppUtilities/BinaryReader#readInt16BE(4c3706f7850cf040).(); |
| 679 | } |
| 680 | |
| 681 | /*! |
| 682 | * \brief Reads a 16-bit big endian unsigned integer from the current stream and advances the current position of the stream by two bytes. |
| 683 | */ |
| 684 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(9d635b13b9faa422).(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# &one16BitUInt) |
| 685 | { |
| 686 | one16BitUInt = readUInt16BEcxx . . $ CppUtilities/BinaryReader#readUInt16BE(32a7769d58713265).(); |
| 687 | } |
| 688 | |
| 689 | /*! |
| 690 | * \brief Reads a 16-bit big endian signed integer from the current stream and advances the current position of the stream by two bytes. |
| 691 | */ |
| 692 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(2afed6f74e8a6d90).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# &one32BitInt) |
| 693 | { |
| 694 | one32BitInt = readInt32BEcxx . . $ CppUtilities/BinaryReader#readInt32BE(b126dc7c1de90089).(); |
| 695 | } |
| 696 | |
| 697 | /*! |
| 698 | * \brief Reads a 32-bit big endian unsigned integer from the current stream and advances the current position of the stream by four bytes. |
| 699 | */ |
| 700 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(db0e23f8c3d03d8b).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# &one32BitUInt) |
| 701 | { |
| 702 | one32BitUInt = readUInt32BEcxx . . $ CppUtilities/BinaryReader#readUInt32BE(db52760e79bf9054).(); |
| 703 | } |
| 704 | |
| 705 | /*! |
| 706 | * \brief Reads a 64-bit big endian signed integer from the current stream and advances the current position of the stream by eight bytes. |
| 707 | */ |
| 708 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(d30c39de810a28fe).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# &one64BitInt) |
| 709 | { |
| 710 | one64BitInt = readInt64BEcxx . . $ CppUtilities/BinaryReader#readInt64BE(da6335ded91d79c2).(); |
| 711 | } |
| 712 | |
| 713 | /*! |
| 714 | * \brief Reads a 64-bit big endian unsigned integer from the current stream and advances the current position of the stream by eight bytes. |
| 715 | */ |
| 716 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(966cfd7706ccae96).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# &one64BitUInt) |
| 717 | { |
| 718 | one64BitUInt = readUInt64BEcxx . . $ CppUtilities/BinaryReader#readUInt64BE(f708dce9a8856c70).(); |
| 719 | } |
| 720 | |
| 721 | /*! |
| 722 | * \brief Reads a 32-bit big endian floating point value from the current stream and advances the current position of the stream by four bytes. |
| 723 | */ |
| 724 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(48c035035a698d35).(float &one32BitFloat) |
| 725 | { |
| 726 | one32BitFloat = readFloat32BEcxx . . $ CppUtilities/BinaryReader#readFloat32BE(9b8c9e39889c762c).(); |
| 727 | } |
| 728 | |
| 729 | /*! |
| 730 | * \brief Reads a 64-bit big endian floating point value from the current stream and advances the current position of the stream by eight bytes. |
| 731 | */ |
| 732 | inline void BinaryReadercxx . . $ CppUtilities/BinaryReader#::readcxx . . $ CppUtilities/BinaryReader#read(fa22aefff6cb375c).(double &one64BitFloat) |
| 733 | { |
| 734 | one64BitFloat = readFloat64BEcxx . . $ CppUtilities/BinaryReader#readFloat64BE(31fa7155c10fdd13).(); |
| 735 | } |
| 736 | } // namespace CppUtilities |
| 737 | |
| 738 | #endif // IOUTILITIES_BINERYREADER_H |