| 1 | #cxx . . $ `<file>/io/binarywriter.h`/ifndef IOUTILITIES_BINARYWRITER_H |
| 2 | #define IOUTILITIES_BINARYWRITER_Hcxx . . $ `io/binarywriter.h:2:9`! |
| 3 | |
| 4 | #include "../conversion/binaryconversion.h"cxx . . $ `<file>/conversion/binaryconversion.h`/ |
| 5 | |
| 6 | #include <cstdint> |
| 7 | #include <cstring> |
| 8 | #include <ostream> |
| 9 | #include <string> |
| 10 | #include <vector> |
| 11 | |
| 12 | namespace CppUtilitiescxx . . $ CppUtilities/ { |
| 13 | |
| 14 | class CPP_UTILITIES_EXPORTcxx . . $ `global.h:11:9`! BinaryWritercxx . . $ CppUtilities/BinaryWriter# { |
| 15 | public: |
| 16 | BinaryWritercxx . . $ CppUtilities/BinaryWriter#BinaryWriter(21ee4ff0e7b62204).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# *stream, bool giveOwnership = false); |
| 17 | BinaryWritercxx . . $ CppUtilities/BinaryWriter#BinaryWriter(dad0f25c773d65c4).(const BinaryWritercxx . . $ CppUtilities/BinaryWriter# &other); |
| 18 | BinaryWritercxx . . $ CppUtilities/BinaryWriter# &operatorcxx . . $ CppUtilities/BinaryWriter#`operator=`(b200a15271f7a44a).=(const BinaryWritercxx . . $ CppUtilities/BinaryWriter# &rhs) = delete; |
| 19 | ~cxx . . $ CppUtilities/BinaryWriter#`~BinaryWriter`(ced63f7c635d850d).BinaryWritercxx . . $ CppUtilities/BinaryWriter#(); |
| 20 | |
| 21 | const stdcxx . . $ std/::ostreamcxx . . $ std/ostream# *streamcxx . . $ CppUtilities/BinaryWriter#stream(f155f58ff408d650).() const; |
| 22 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream# *streamcxx . . $ CppUtilities/BinaryWriter#stream(a0ce4335f407e5ba).(); |
| 23 | void setStreamcxx . . $ CppUtilities/BinaryWriter#setStream(21ee4ff0e7b62204).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# *stream, bool giveOwnership = false); |
| 24 | bool hasOwnershipcxx . . $ CppUtilities/BinaryWriter#hasOwnership(50ce9a9e25b4a850).() const; |
| 25 | void giveOwnershipcxx . . $ CppUtilities/BinaryWriter#giveOwnership(49f6e7a06ebc5aa8).(); |
| 26 | void detatchOwnershipcxx . . $ CppUtilities/BinaryWriter#detatchOwnership(49f6e7a06ebc5aa8).(); |
| 27 | void flushcxx . . $ CppUtilities/BinaryWriter#flush(49f6e7a06ebc5aa8).(); |
| 28 | bool failcxx . . $ CppUtilities/BinaryWriter#fail(50ce9a9e25b4a850).() const; |
| 29 | void writecxx . . $ CppUtilities/BinaryWriter#write(ea9ecd48262ed8f2).(const char *buffer, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# length); |
| 30 | void writecxx . . $ CppUtilities/BinaryWriter#write(de76d8f40beee99d).(const stdcxx . . $ std/::vectorcxx . . $ std/vector#<char> &buffer, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# length); |
| 31 | void writeCharcxx . . $ CppUtilities/BinaryWriter#writeChar(44b6ea1973a07080).(char value); |
| 32 | void writeBytecxx . . $ CppUtilities/BinaryWriter#writeByte(ac50b47256ae7414).(stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# value); |
| 33 | void writeInt16BEcxx . . $ CppUtilities/BinaryWriter#writeInt16BE(68e3ae50fe6578a9).(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# value); |
| 34 | void writeUInt16BEcxx . . $ CppUtilities/BinaryWriter#writeUInt16BE(ed53e3bbd3fa2f69).(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# value); |
| 35 | void writeInt24BEcxx . . $ CppUtilities/BinaryWriter#writeInt24BE(d4f767463ce0a6b3).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# value); |
| 36 | void writeUInt24BEcxx . . $ CppUtilities/BinaryWriter#writeUInt24BE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# value); |
| 37 | void writeInt32BEcxx . . $ CppUtilities/BinaryWriter#writeInt32BE(d4f767463ce0a6b3).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# value); |
| 38 | void writeUInt32BEcxx . . $ CppUtilities/BinaryWriter#writeUInt32BE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# value); |
| 39 | void writeInt40BEcxx . . $ CppUtilities/BinaryWriter#writeInt40BE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value); |
| 40 | void writeUInt40BEcxx . . $ CppUtilities/BinaryWriter#writeUInt40BE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value); |
| 41 | void writeInt56BEcxx . . $ CppUtilities/BinaryWriter#writeInt56BE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value); |
| 42 | void writeUInt56BEcxx . . $ CppUtilities/BinaryWriter#writeUInt56BE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value); |
| 43 | void writeInt64BEcxx . . $ CppUtilities/BinaryWriter#writeInt64BE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value); |
| 44 | void writeUInt64BEcxx . . $ CppUtilities/BinaryWriter#writeUInt64BE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value); |
| 45 | void writeVariableLengthUIntBEcxx . . $ CppUtilities/BinaryWriter#writeVariableLengthUIntBE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value); |
| 46 | void writeFloat32BEcxx . . $ CppUtilities/BinaryWriter#writeFloat32BE(9364e6e7bff7660).(float value); |
| 47 | void writeFloat64BEcxx . . $ CppUtilities/BinaryWriter#writeFloat64BE(ba8836b59fb42830).(double value); |
| 48 | void writeInt16LEcxx . . $ CppUtilities/BinaryWriter#writeInt16LE(68e3ae50fe6578a9).(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# value); |
| 49 | void writeUInt16LEcxx . . $ CppUtilities/BinaryWriter#writeUInt16LE(ed53e3bbd3fa2f69).(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# value); |
| 50 | void writeInt24LEcxx . . $ CppUtilities/BinaryWriter#writeInt24LE(d4f767463ce0a6b3).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# value); |
| 51 | void writeUInt24LEcxx . . $ CppUtilities/BinaryWriter#writeUInt24LE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# value); |
| 52 | void writeInt32LEcxx . . $ CppUtilities/BinaryWriter#writeInt32LE(d4f767463ce0a6b3).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# value); |
| 53 | void writeUInt32LEcxx . . $ CppUtilities/BinaryWriter#writeUInt32LE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# value); |
| 54 | void writeInt40LEcxx . . $ CppUtilities/BinaryWriter#writeInt40LE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value); |
| 55 | void writeUInt40LEcxx . . $ CppUtilities/BinaryWriter#writeUInt40LE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value); |
| 56 | void writeInt56LEcxx . . $ CppUtilities/BinaryWriter#writeInt56LE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value); |
| 57 | void writeUInt56LEcxx . . $ CppUtilities/BinaryWriter#writeUInt56LE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value); |
| 58 | void writeInt64LEcxx . . $ CppUtilities/BinaryWriter#writeInt64LE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value); |
| 59 | void writeUInt64LEcxx . . $ CppUtilities/BinaryWriter#writeUInt64LE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value); |
| 60 | void writeVariableLengthUIntLEcxx . . $ CppUtilities/BinaryWriter#writeVariableLengthUIntLE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value); |
| 61 | void writeFloat32LEcxx . . $ CppUtilities/BinaryWriter#writeFloat32LE(9364e6e7bff7660).(float value); |
| 62 | void writeFloat64LEcxx . . $ CppUtilities/BinaryWriter#writeFloat64LE(ba8836b59fb42830).(double value); |
| 63 | void writeStringcxx . . $ CppUtilities/BinaryWriter#writeString(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &value); |
| 64 | void writeTerminatedStringcxx . . $ CppUtilities/BinaryWriter#writeTerminatedString(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &value); |
| 65 | void writeLengthPrefixedStringcxx . . $ CppUtilities/BinaryWriter#writeLengthPrefixedString(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &value); |
| 66 | void writeLengthPrefixedCStringcxx . . $ CppUtilities/BinaryWriter#writeLengthPrefixedCString(7cafb6e0818eff3b).(const char *value, stdcxx . . $ std/::size_tcxx . . $ std/size_t# size); |
| 67 | void writeBoolcxx . . $ CppUtilities/BinaryWriter#writeBool(b45ddcbc8423892c).(bool value); |
| 68 | void writeSynchsafeUInt32BEcxx . . $ CppUtilities/BinaryWriter#writeSynchsafeUInt32BE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# valueToConvertAndWrite); |
| 69 | void writeFixed8BEcxx . . $ CppUtilities/BinaryWriter#writeFixed8BE(9364e6e7bff7660).(float valueToConvertAndWrite); |
| 70 | void writeFixed16BEcxx . . $ CppUtilities/BinaryWriter#writeFixed16BE(9364e6e7bff7660).(float valueToConvertAndWrite); |
| 71 | void writeSynchsafeUInt32LEcxx . . $ CppUtilities/BinaryWriter#writeSynchsafeUInt32LE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# valueToConvertAndWrite); |
| 72 | void writeFixed8LEcxx . . $ CppUtilities/BinaryWriter#writeFixed8LE(9364e6e7bff7660).(float valueToConvertAndWrite); |
| 73 | void writeFixed16LEcxx . . $ CppUtilities/BinaryWriter#writeFixed16LE(9364e6e7bff7660).(float valueToConvertAndWrite); |
| 74 | |
| 75 | // declare further overloads for write() to ease use of BinaryWriter in templates |
| 76 | void writecxx . . $ CppUtilities/BinaryWriter#write(44b6ea1973a07080).(char oneChar); |
| 77 | void writecxx . . $ CppUtilities/BinaryWriter#write(ac50b47256ae7414).(stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# oneByte); |
| 78 | void writecxx . . $ CppUtilities/BinaryWriter#write(b45ddcbc8423892c).(bool oneBool); |
| 79 | void writecxx . . $ CppUtilities/BinaryWriter#write(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &lengthPrefixedString); |
| 80 | void writecxx . . $ CppUtilities/BinaryWriter#write(c8024318075daf50).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# lengthPrefixedString); |
| 81 | void writecxx . . $ CppUtilities/BinaryWriter#write(85c52e162fed56f9).(const char *lengthPrefixedString); |
| 82 | void writecxx . . $ CppUtilities/BinaryWriter#write(68e3ae50fe6578a9).(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# one16BitInt); |
| 83 | void writecxx . . $ CppUtilities/BinaryWriter#write(ed53e3bbd3fa2f69).(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# one16BitUint); |
| 84 | void writecxx . . $ CppUtilities/BinaryWriter#write(d4f767463ce0a6b3).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# one32BitInt); |
| 85 | void writecxx . . $ CppUtilities/BinaryWriter#write(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# one32BitUint); |
| 86 | void writecxx . . $ CppUtilities/BinaryWriter#write(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# one64BitInt); |
| 87 | void writecxx . . $ CppUtilities/BinaryWriter#write(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# one64BitUint); |
| 88 | void writecxx . . $ CppUtilities/BinaryWriter#write(9364e6e7bff7660).(float one32BitFloat); |
| 89 | void writecxx . . $ CppUtilities/BinaryWriter#write(ba8836b59fb42830).(double one64BitFloat); |
| 90 | |
| 91 | private: |
| 92 | void writeVariableLengthIntegercxx . . $ CppUtilities/BinaryWriter#writeVariableLengthInteger(42bc9703dfae19bc).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# size, void (*getBytes)(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#, char *)); |
| 93 | |
| 94 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream# *m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.; |
| 95 | bool m_ownershipcxx . . $ CppUtilities/BinaryWriter#m_ownership.; |
| 96 | char m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.[8]; |
| 97 | }; |
| 98 | |
| 99 | /*! |
| 100 | * \brief Constructs a new BinaryWriter. |
| 101 | * \param stream Specifies the stream to write to. |
| 102 | * \param giveOwnership Specifies whether the writer should take ownership. |
| 103 | */ |
| 104 | inline BinaryWritercxx . . $ CppUtilities/BinaryWriter#::BinaryWritercxx . . $ CppUtilities/BinaryWriter#BinaryWriter(21ee4ff0e7b62204).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# *stream, bool giveOwnership) |
| 105 | : m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.(stream) |
| 106 | , m_ownershipcxx . . $ CppUtilities/BinaryWriter#m_ownership.(giveOwnership) |
| 107 | { |
| 108 | } |
| 109 | |
| 110 | /*! |
| 111 | * \brief Copies the specified BinaryWriter. |
| 112 | * \remarks The copy will not take ownership over the stream. |
| 113 | */ |
| 114 | inline BinaryWritercxx . . $ CppUtilities/BinaryWriter#::BinaryWritercxx . . $ CppUtilities/BinaryWriter#BinaryWriter(dad0f25c773d65c4).(const BinaryWritercxx . . $ CppUtilities/BinaryWriter# &other) |
| 115 | : m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.(other.m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.) |
| 116 | , m_ownershipcxx . . $ CppUtilities/BinaryWriter#m_ownership.(false) |
| 117 | { |
| 118 | } |
| 119 | |
| 120 | /*! |
| 121 | * \brief Destroys the BinaryWriter. |
| 122 | */ |
| 123 | inline BinaryWritercxx . . $ CppUtilities/BinaryWriter#::~cxx . . $ CppUtilities/BinaryWriter#`~BinaryWriter`(ced63f7c635d850d).BinaryWritercxx . . $ CppUtilities/BinaryWriter#() |
| 124 | { |
| 125 | if (m_ownershipcxx . . $ CppUtilities/BinaryWriter#m_ownership.) { |
| 126 | delete m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.; |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /*! |
| 131 | * \brief Returns a pointer to the stream the writer will write to when calling one of the write-methods. |
| 132 | * |
| 133 | * \sa setStream() |
| 134 | */ |
| 135 | inline stdcxx . . $ std/::ostreamcxx . . $ std/ostream# *BinaryWritercxx . . $ CppUtilities/BinaryWriter#::streamcxx . . $ CppUtilities/BinaryWriter#stream(a0ce4335f407e5ba).() |
| 136 | { |
| 137 | return m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.; |
| 138 | } |
| 139 | |
| 140 | /*! |
| 141 | * \brief Returns a pointer to the stream the writer will write to when calling one of the write-methods. |
| 142 | * |
| 143 | * \sa setStream() |
| 144 | */ |
| 145 | inline const stdcxx . . $ std/::ostreamcxx . . $ std/ostream# *BinaryWritercxx . . $ CppUtilities/BinaryWriter#::streamcxx . . $ CppUtilities/BinaryWriter#stream(f155f58ff408d650).() const |
| 146 | { |
| 147 | return m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.; |
| 148 | } |
| 149 | |
| 150 | /*! |
| 151 | * \brief Returns whether the writer takes ownership over the assigned stream. |
| 152 | * |
| 153 | * \sa setStream() |
| 154 | * \sa giveOwnership() |
| 155 | * \sa detatchOwnership() |
| 156 | */ |
| 157 | inline bool BinaryWritercxx . . $ CppUtilities/BinaryWriter#::hasOwnershipcxx . . $ CppUtilities/BinaryWriter#hasOwnership(50ce9a9e25b4a850).() const |
| 158 | { |
| 159 | return m_ownershipcxx . . $ CppUtilities/BinaryWriter#m_ownership.; |
| 160 | } |
| 161 | |
| 162 | /*! |
| 163 | * \brief The writer will take ownership over the assigned stream. |
| 164 | * |
| 165 | * \sa setStream() |
| 166 | * \sa detatchOwnership() |
| 167 | * \sa hasOwnership() |
| 168 | */ |
| 169 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::giveOwnershipcxx . . $ CppUtilities/BinaryWriter#giveOwnership(49f6e7a06ebc5aa8).() |
| 170 | { |
| 171 | if (m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.) { |
| 172 | m_ownershipcxx . . $ CppUtilities/BinaryWriter#m_ownership. = true; |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | /*! |
| 177 | * \brief The writer will not take ownership over the assigned stream. |
| 178 | * |
| 179 | * \sa setStream() |
| 180 | * \sa giveOwnership() |
| 181 | * \sa hasOwnership() |
| 182 | */ |
| 183 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::detatchOwnershipcxx . . $ CppUtilities/BinaryWriter#detatchOwnership(49f6e7a06ebc5aa8).() |
| 184 | { |
| 185 | m_ownershipcxx . . $ CppUtilities/BinaryWriter#m_ownership. = false; |
| 186 | } |
| 187 | |
| 188 | /*! |
| 189 | * \brief Calls the flush() method of the assigned stream. |
| 190 | */ |
| 191 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::flushcxx . . $ CppUtilities/BinaryWriter#flush(49f6e7a06ebc5aa8).() |
| 192 | { |
| 193 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->flushcxx . . $ std/basic_ostream#flush(e66e05a7745427d2).(); |
| 194 | } |
| 195 | |
| 196 | /*! |
| 197 | * \brief Returns an indication whether the fail bit of the assigned stream is set. |
| 198 | */ |
| 199 | inline bool BinaryWritercxx . . $ CppUtilities/BinaryWriter#::failcxx . . $ CppUtilities/BinaryWriter#fail(50ce9a9e25b4a850).() const |
| 200 | { |
| 201 | return m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream. ? m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->failcxx . . $ std/basic_ios#fail(50ce9a9e25b4a850).() : false; |
| 202 | } |
| 203 | |
| 204 | /*! |
| 205 | * \brief Writes a character array to the current stream and advances the current position of the stream by the \a length of the array. |
| 206 | */ |
| 207 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(ea9ecd48262ed8f2).(const char *buffer, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# length) |
| 208 | { |
| 209 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(buffer, length); |
| 210 | } |
| 211 | |
| 212 | /*! |
| 213 | * \brief Writes the specified number of bytes from the \a buffer to the current stream and advances the current position of the stream by |
| 214 | * the specified \a length which must be less or equal to the \a buffer size. |
| 215 | */ |
| 216 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(de76d8f40beee99d).(const stdcxx . . $ std/::vectorcxx . . $ std/vector#<char> &buffer, stdcxx . . $ std/::streamsizecxx . . $ std/streamsize# length) |
| 217 | { |
| 218 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(buffer.datacxx . . $ std/vector#data(8e614c7de0b1573e).(), length); |
| 219 | } |
| 220 | |
| 221 | /*! |
| 222 | * \brief Writes a single character to the current stream and advances the current position of the stream by one byte. |
| 223 | */ |
| 224 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeCharcxx . . $ CppUtilities/BinaryWriter#writeChar(44b6ea1973a07080).(char value) |
| 225 | { |
| 226 | m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.[0] = value; |
| 227 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., 1); |
| 228 | } |
| 229 | |
| 230 | /*! |
| 231 | * \brief Writes a single byte to the current stream and advances the current position of the stream by one byte. |
| 232 | */ |
| 233 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeBytecxx . . $ CppUtilities/BinaryWriter#writeByte(ac50b47256ae7414).(stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# value) |
| 234 | { |
| 235 | m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.[0] = *reinterpret_cast<char *>(&value); |
| 236 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., 1); |
| 237 | } |
| 238 | |
| 239 | /*! |
| 240 | * \brief Writes a boolean value to the current stream and advances the current position of the stream by one byte. |
| 241 | */ |
| 242 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeBoolcxx . . $ CppUtilities/BinaryWriter#writeBool(b45ddcbc8423892c).(bool value) |
| 243 | { |
| 244 | writeBytecxx . . $ CppUtilities/BinaryWriter#writeByte(ac50b47256ae7414).(value ? 1 : 0); |
| 245 | } |
| 246 | |
| 247 | /*! |
| 248 | * \brief Writes a 16-bit big endian signed integer to the current stream and advances the current position of the stream by two bytes. |
| 249 | */ |
| 250 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt16BEcxx . . $ CppUtilities/BinaryWriter#writeInt16BE(68e3ae50fe6578a9).(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# value) |
| 251 | { |
| 252 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 253 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t#)); |
| 254 | } |
| 255 | |
| 256 | /*! |
| 257 | * \brief Writes a 16-bit big endian unsigned integer to the current stream and advances the current position of the stream by two bytes. |
| 258 | */ |
| 259 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt16BEcxx . . $ CppUtilities/BinaryWriter#writeUInt16BE(ed53e3bbd3fa2f69).(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# value) |
| 260 | { |
| 261 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 262 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t#)); |
| 263 | } |
| 264 | |
| 265 | /*! |
| 266 | * \brief Writes a 24-bit big endian signed integer to the current stream and advances the current position of the stream by three bytes. |
| 267 | * \remarks The most significant byte of the specified 32-bit signed integer \a value will be discarded. |
| 268 | */ |
| 269 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt24BEcxx . . $ CppUtilities/BinaryWriter#writeInt24BE(d4f767463ce0a6b3).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# value) |
| 270 | { |
| 271 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 272 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer. + 1, 3); |
| 273 | } |
| 274 | |
| 275 | /*! |
| 276 | * \brief Writes a 24-bit big endian unsigned integer to the current stream and advances the current position of the stream by three bytes. |
| 277 | * \remarks The most significant byte of the specified 32-bit unsigned integer \a value will be discarded. |
| 278 | */ |
| 279 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt24BEcxx . . $ CppUtilities/BinaryWriter#writeUInt24BE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# value) |
| 280 | { |
| 281 | // discard most significant byte |
| 282 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 283 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer. + 1, 3); |
| 284 | } |
| 285 | |
| 286 | /*! |
| 287 | * \brief Writes a 32-bit big endian signed integer to the current stream and advances the current position of the stream by four bytes. |
| 288 | */ |
| 289 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt32BEcxx . . $ CppUtilities/BinaryWriter#writeInt32BE(d4f767463ce0a6b3).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# value) |
| 290 | { |
| 291 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 292 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t#)); |
| 293 | } |
| 294 | |
| 295 | /*! |
| 296 | * \brief Writes a 32-bit big endian unsigned integer to the current stream and advances the current position of the stream by four bytes. |
| 297 | */ |
| 298 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt32BEcxx . . $ CppUtilities/BinaryWriter#writeUInt32BE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# value) |
| 299 | { |
| 300 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 301 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t#)); |
| 302 | } |
| 303 | |
| 304 | /*! |
| 305 | * \brief Writes a 40-bit big endian signed integer to the current stream and advances the current position of the stream by four bytes. |
| 306 | * \remarks The most significant bytes of the specified 64-bit unsigned integer \a value will be discarded. |
| 307 | */ |
| 308 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt40BEcxx . . $ CppUtilities/BinaryWriter#writeInt40BE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value) |
| 309 | { |
| 310 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 311 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer. + 3, 5); |
| 312 | } |
| 313 | |
| 314 | /*! |
| 315 | * \brief Writes a 40-bit big endian unsigned integer to the current stream and advances the current position of the stream by four bytes. |
| 316 | * \remarks The most significant bytes of the specified 64-bit unsigned integer \a value will be discarded. |
| 317 | */ |
| 318 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt40BEcxx . . $ CppUtilities/BinaryWriter#writeUInt40BE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value) |
| 319 | { |
| 320 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 321 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer. + 3, 5); |
| 322 | } |
| 323 | |
| 324 | /*! |
| 325 | * \brief Writes a 56-bit big endian signed integer to the current stream and advances the current position of the stream by four bytes. |
| 326 | * \remarks The most significant byte of the specified 64-bit unsigned integer \a value will be discarded. |
| 327 | */ |
| 328 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt56BEcxx . . $ CppUtilities/BinaryWriter#writeInt56BE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value) |
| 329 | { |
| 330 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 331 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer. + 1, 7); |
| 332 | } |
| 333 | |
| 334 | /*! |
| 335 | * \brief Writes a 56-bit big endian unsigned integer to the current stream and advances the current position of the stream by four bytes. |
| 336 | * \remarks The most significant byte of the specified 64-bit unsigned integer \a value will be discarded. |
| 337 | */ |
| 338 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt56BEcxx . . $ CppUtilities/BinaryWriter#writeUInt56BE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value) |
| 339 | { |
| 340 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 341 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer. + 1, 7); |
| 342 | } |
| 343 | |
| 344 | /*! |
| 345 | * \brief Writes a 64-bit big endian signed integer to the current stream and advances the current position of the stream by eight bytes. |
| 346 | */ |
| 347 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt64BEcxx . . $ CppUtilities/BinaryWriter#writeInt64BE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value) |
| 348 | { |
| 349 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 350 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t#)); |
| 351 | } |
| 352 | |
| 353 | /*! |
| 354 | * \brief Writes a 64-bit big endian unsigned integer to the current stream and advances the current position of the stream by eight bytes. |
| 355 | */ |
| 356 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt64BEcxx . . $ CppUtilities/BinaryWriter#writeUInt64BE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value) |
| 357 | { |
| 358 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 359 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#)); |
| 360 | } |
| 361 | |
| 362 | /*! |
| 363 | * \brief Writes an up to 8 byte long big endian unsigned integer to the current stream and advances the current position of the stream by one to eight bytes. |
| 364 | * \throws Throws ConversionException if \a value exceeds the maximum. |
| 365 | */ |
| 366 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeVariableLengthUIntBEcxx . . $ CppUtilities/BinaryWriter#writeVariableLengthUIntBE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value) |
| 367 | { |
| 368 | writeVariableLengthIntegercxx . . $ CppUtilities/BinaryWriter#writeVariableLengthInteger(42bc9703dfae19bc).(value, static_cast<void (*)(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#, char *)>(&BEcxx . . $ CppUtilities/BE/::getBytes)); |
| 369 | } |
| 370 | |
| 371 | /*! |
| 372 | * \brief Writes a 32-bit big endian floating point \a value to the current stream and advances the current position of the stream by four bytes. |
| 373 | */ |
| 374 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeFloat32BEcxx . . $ CppUtilities/BinaryWriter#writeFloat32BE(9364e6e7bff7660).(float value) |
| 375 | { |
| 376 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 377 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(float)); |
| 378 | } |
| 379 | |
| 380 | /*! |
| 381 | * \brief Writes a 64-bit big endian floating point \a value to the current stream and advances the current position of the stream by eight bytes. |
| 382 | */ |
| 383 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeFloat64BEcxx . . $ CppUtilities/BinaryWriter#writeFloat64BE(ba8836b59fb42830).(double value) |
| 384 | { |
| 385 | BEcxx . . $ CppUtilities/BE/::getBytes(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 386 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(double)); |
| 387 | } |
| 388 | |
| 389 | /*! |
| 390 | * \brief Writes a 16-bit little endian signed integer to the current stream and advances the current position of the stream by two bytes. |
| 391 | */ |
| 392 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt16LEcxx . . $ CppUtilities/BinaryWriter#writeInt16LE(68e3ae50fe6578a9).(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# value) |
| 393 | { |
| 394 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 395 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t#)); |
| 396 | } |
| 397 | |
| 398 | /*! |
| 399 | * \brief Writes a 16-bit little endian unsigned integer to the current stream and advances the current position of the stream by two bytes. |
| 400 | */ |
| 401 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt16LEcxx . . $ CppUtilities/BinaryWriter#writeUInt16LE(ed53e3bbd3fa2f69).(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# value) |
| 402 | { |
| 403 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 404 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t#)); |
| 405 | } |
| 406 | |
| 407 | /*! |
| 408 | * \brief Writes a 24-bit little endian signed integer to the current stream and advances the current position of the stream by three bytes. |
| 409 | * \remarks The most significant byte of the specified 32-bit signed integer \a value will be discarded. |
| 410 | */ |
| 411 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt24LEcxx . . $ CppUtilities/BinaryWriter#writeInt24LE(d4f767463ce0a6b3).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# value) |
| 412 | { |
| 413 | // discard most significant byte |
| 414 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 415 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., 3); |
| 416 | } |
| 417 | |
| 418 | /*! |
| 419 | * \brief Writes a 24-bit little endian unsigned integer to the current stream and advances the current position of the stream by three bytes. |
| 420 | * \remarks The most significant byte of the specified 32-bit unsigned integer \a value will be discarded. |
| 421 | */ |
| 422 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt24LEcxx . . $ CppUtilities/BinaryWriter#writeUInt24LE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# value) |
| 423 | { |
| 424 | // discard most significant byte |
| 425 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 426 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., 3); |
| 427 | } |
| 428 | |
| 429 | /*! |
| 430 | * \brief Writes a 32-bit little endian signed integer to the current stream and advances the current position of the stream by four bytes. |
| 431 | */ |
| 432 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt32LEcxx . . $ CppUtilities/BinaryWriter#writeInt32LE(d4f767463ce0a6b3).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# value) |
| 433 | { |
| 434 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 435 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t#)); |
| 436 | } |
| 437 | |
| 438 | /*! |
| 439 | * \brief Writes a 32-bit little endian unsigned integer to the current stream and advances the current position of the stream by four bytes. |
| 440 | */ |
| 441 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt32LEcxx . . $ CppUtilities/BinaryWriter#writeUInt32LE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# value) |
| 442 | { |
| 443 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 444 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t#)); |
| 445 | } |
| 446 | |
| 447 | /*! |
| 448 | * \brief Writes a 40-bit big endian signed integer to the current stream and advances the current position of the stream by four bytes. |
| 449 | * \remarks The most significant bytes of the specified 64-bit unsigned integer \a value will be discarded. |
| 450 | */ |
| 451 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt40LEcxx . . $ CppUtilities/BinaryWriter#writeInt40LE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value) |
| 452 | { |
| 453 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 454 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., 5); |
| 455 | } |
| 456 | |
| 457 | /*! |
| 458 | * \brief Writes a 40-bit big endian unsigned integer to the current stream and advances the current position of the stream by four bytes. |
| 459 | * \remarks The most significant bytes of the specified 64-bit unsigned integer \a value will be discarded. |
| 460 | */ |
| 461 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt40LEcxx . . $ CppUtilities/BinaryWriter#writeUInt40LE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value) |
| 462 | { |
| 463 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 464 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., 5); |
| 465 | } |
| 466 | |
| 467 | /*! |
| 468 | * \brief Writes a 56-bit big endian signed integer to the current stream and advances the current position of the stream by four bytes. |
| 469 | * \remarks The most significant byte of the specified 64-bit unsigned integer \a value will be discarded. |
| 470 | */ |
| 471 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt56LEcxx . . $ CppUtilities/BinaryWriter#writeInt56LE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value) |
| 472 | { |
| 473 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 474 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., 7); |
| 475 | } |
| 476 | |
| 477 | /*! |
| 478 | * \brief Writes a 56-bit big endian unsigned integer to the current stream and advances the current position of the stream by four bytes. |
| 479 | * \remarks The most significant byte of the specified 64-bit unsigned integer \a value will be discarded. |
| 480 | */ |
| 481 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt56LEcxx . . $ CppUtilities/BinaryWriter#writeUInt56LE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value) |
| 482 | { |
| 483 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 484 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., 7); |
| 485 | } |
| 486 | |
| 487 | /*! |
| 488 | * \brief Writes a 64-bit little endian signed integer to the current stream and advances the current position of the stream by eight bytes. |
| 489 | */ |
| 490 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeInt64LEcxx . . $ CppUtilities/BinaryWriter#writeInt64LE(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# value) |
| 491 | { |
| 492 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 493 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t#)); |
| 494 | } |
| 495 | |
| 496 | /*! |
| 497 | * \brief Writes a 64-bit little endian unsigned integer to the current stream and advances the current position of the stream by eight bytes. |
| 498 | */ |
| 499 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeUInt64LEcxx . . $ CppUtilities/BinaryWriter#writeUInt64LE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value) |
| 500 | { |
| 501 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 502 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#)); |
| 503 | } |
| 504 | |
| 505 | /*! |
| 506 | * \brief Writes an up to 8 byte long little endian unsigned integer to the current stream and advances the current position of the stream by one to eight bytes. |
| 507 | * \throws Throws ConversionException if \a value exceeds the maximum. |
| 508 | */ |
| 509 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeVariableLengthUIntLEcxx . . $ CppUtilities/BinaryWriter#writeVariableLengthUIntLE(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# value) |
| 510 | { |
| 511 | writeVariableLengthIntegercxx . . $ CppUtilities/BinaryWriter#writeVariableLengthInteger(42bc9703dfae19bc).(value, static_cast<void (*)(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#, char *)>(&LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(b066d9ddbd24ee0b).)); |
| 512 | } |
| 513 | |
| 514 | /*! |
| 515 | * \brief Writes a 32-bit little endian floating point \a value to the current stream and advances the current position of the stream by four bytes. |
| 516 | */ |
| 517 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeFloat32LEcxx . . $ CppUtilities/BinaryWriter#writeFloat32LE(9364e6e7bff7660).(float value) |
| 518 | { |
| 519 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(dd5cf69c7eb3cc5e).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 520 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(float)); |
| 521 | } |
| 522 | |
| 523 | /*! |
| 524 | * \brief Writes a 64-bit little endian floating point \a value to the current stream and advances the current position of the stream by eight bytes. |
| 525 | */ |
| 526 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeFloat64LEcxx . . $ CppUtilities/BinaryWriter#writeFloat64LE(ba8836b59fb42830).(double value) |
| 527 | { |
| 528 | LEcxx . . $ CppUtilities/LE/::getBytescxx . . $ CppUtilities/LE/getBytes(d79b6503c1458af4).(value, m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer.); |
| 529 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(m_buffercxx . . $ CppUtilities/BinaryWriter#m_buffer., sizeof(double)); |
| 530 | } |
| 531 | |
| 532 | /*! |
| 533 | * \brief Writes a string to the current stream and advances the current position of the stream by the length of the string. |
| 534 | */ |
| 535 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeStringcxx . . $ CppUtilities/BinaryWriter#writeString(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &value) |
| 536 | { |
| 537 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(value.datacxx . . $ std/__cxx11/basic_string#data(8e614c7de0b1573e).(), static_cast<stdcxx . . $ std/::streamsizecxx . . $ std/streamsize#>(value.sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).())); |
| 538 | } |
| 539 | |
| 540 | /*! |
| 541 | * \brief Writes a terminated string to the current stream and advances the current position of the stream by the length of the string plus 1. |
| 542 | */ |
| 543 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeTerminatedStringcxx . . $ CppUtilities/BinaryWriter#writeTerminatedString(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &value) |
| 544 | { |
| 545 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(value.datacxx . . $ std/__cxx11/basic_string#data(8e614c7de0b1573e).(), static_cast<stdcxx . . $ std/::streamsizecxx . . $ std/streamsize#>(value.sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).() + 1)); |
| 546 | } |
| 547 | |
| 548 | /*! |
| 549 | * \brief Writes the length of a string and the string itself to the current stream. |
| 550 | * |
| 551 | * Advances the current position of the stream by the length of the string plus the size of the length prefix. |
| 552 | * |
| 553 | * \throws Throws ConversionException if the string size exceeds the maximum. |
| 554 | */ |
| 555 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeLengthPrefixedStringcxx . . $ CppUtilities/BinaryWriter#writeLengthPrefixedString(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &value) |
| 556 | { |
| 557 | writeVariableLengthUIntBEcxx . . $ CppUtilities/BinaryWriter#writeVariableLengthUIntBE(2c44cd906ae4e829).(value.sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).()); |
| 558 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(value.datacxx . . $ std/__cxx11/basic_string#data(8e614c7de0b1573e).(), static_cast<stdcxx . . $ std/::streamsizecxx . . $ std/streamsize#>(value.sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).())); |
| 559 | } |
| 560 | |
| 561 | /*! |
| 562 | * \brief Writes the length of a string and the string itself to the current stream. |
| 563 | * |
| 564 | * Advances the current position of the stream by the length of the string plus the size of the length prefix. |
| 565 | * |
| 566 | * \throws Throws ConversionException if the string size exceeds the maximum. |
| 567 | */ |
| 568 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeLengthPrefixedCStringcxx . . $ CppUtilities/BinaryWriter#writeLengthPrefixedCString(7cafb6e0818eff3b).(const char *value, stdcxx . . $ std/::size_tcxx . . $ std/size_t# size) |
| 569 | { |
| 570 | writeVariableLengthUIntBEcxx . . $ CppUtilities/BinaryWriter#writeVariableLengthUIntBE(2c44cd906ae4e829).(size); |
| 571 | m_streamcxx . . $ CppUtilities/BinaryWriter#m_stream.->writecxx . . $ std/basic_ostream#write(3c866fa06c201852).(value, static_cast<stdcxx . . $ std/::streamsizecxx . . $ std/streamsize#>(size)); |
| 572 | } |
| 573 | |
| 574 | /*! |
| 575 | * \brief Writes a 32-bit big endian synchsafe integer to the current stream and advances the current position of the stream by four bytes. |
| 576 | * \remarks Synchsafe integers appear in ID3 tags that are attached to an MP3 file. |
| 577 | * \sa <a href="http://id3.org/id3v2.4.0-structure">ID3 tag version 2.4.0 - Main Structure</a> |
| 578 | */ |
| 579 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeSynchsafeUInt32BEcxx . . $ CppUtilities/BinaryWriter#writeSynchsafeUInt32BE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# valueToConvertAndWrite) |
| 580 | { |
| 581 | writeUInt32BEcxx . . $ CppUtilities/BinaryWriter#writeUInt32BE(cb2f890c2fdad230).(toSynchsafeIntcxx . . $ CppUtilities/toSynchsafeInt(2141b656ce2cc063).(valueToConvertAndWrite)); |
| 582 | } |
| 583 | |
| 584 | /*! |
| 585 | * \brief Writes the 8.8 fixed point big endian representation for the specified 32-bit floating point \a value to the current stream and advances the current position of the stream by two bytes. |
| 586 | */ |
| 587 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeFixed8BEcxx . . $ CppUtilities/BinaryWriter#writeFixed8BE(9364e6e7bff7660).(float valueToConvertAndWrite) |
| 588 | { |
| 589 | writeUInt16BEcxx . . $ CppUtilities/BinaryWriter#writeUInt16BE(ed53e3bbd3fa2f69).(toFixed8cxx . . $ CppUtilities/toFixed8(a7602afe0c5a7a59).(valueToConvertAndWrite)); |
| 590 | } |
| 591 | |
| 592 | /*! |
| 593 | * \brief Writes the 16.16 fixed point big endian representation for the specified 32-bit floating point \a value to the current stream and advances the current position of the stream by four bytes. |
| 594 | */ |
| 595 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeFixed16BEcxx . . $ CppUtilities/BinaryWriter#writeFixed16BE(9364e6e7bff7660).(float valueToConvertAndWrite) |
| 596 | { |
| 597 | writeUInt32BEcxx . . $ CppUtilities/BinaryWriter#writeUInt32BE(cb2f890c2fdad230).(toFixed16cxx . . $ CppUtilities/toFixed16(126a58af4772d7ea).(valueToConvertAndWrite)); |
| 598 | } |
| 599 | |
| 600 | /*! |
| 601 | * \brief Writes a 32-bit little endian synchsafe integer to the current stream and advances the current position of the stream by four bytes. |
| 602 | * \remarks Synchsafe integers appear in ID3 tags that are attached to an MP3 file. |
| 603 | * \sa <a href="http://id3.org/id3v2.4.0-structure">ID3 tag version 2.4.0 - Main Structure</a> |
| 604 | */ |
| 605 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeSynchsafeUInt32LEcxx . . $ CppUtilities/BinaryWriter#writeSynchsafeUInt32LE(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# valueToConvertAndWrite) |
| 606 | { |
| 607 | writeUInt32LEcxx . . $ CppUtilities/BinaryWriter#writeUInt32LE(cb2f890c2fdad230).(toSynchsafeIntcxx . . $ CppUtilities/toSynchsafeInt(2141b656ce2cc063).(valueToConvertAndWrite)); |
| 608 | } |
| 609 | |
| 610 | /*! |
| 611 | * \brief Writes the 8.8 fixed point little endian representation for the specified 32-bit floating point \a value to the current stream and advances the current position of the stream by two bytes. |
| 612 | */ |
| 613 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeFixed8LEcxx . . $ CppUtilities/BinaryWriter#writeFixed8LE(9364e6e7bff7660).(float valueToConvertAndWrite) |
| 614 | { |
| 615 | writeUInt16LEcxx . . $ CppUtilities/BinaryWriter#writeUInt16LE(ed53e3bbd3fa2f69).(toFixed8cxx . . $ CppUtilities/toFixed8(a7602afe0c5a7a59).(valueToConvertAndWrite)); |
| 616 | } |
| 617 | |
| 618 | /*! |
| 619 | * \brief Writes the 16.16 fixed point little endian representation for the specified 32-bit floating point \a value to the current stream and advances the current position of the stream by four bytes. |
| 620 | */ |
| 621 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writeFixed16LEcxx . . $ CppUtilities/BinaryWriter#writeFixed16LE(9364e6e7bff7660).(float valueToConvertAndWrite) |
| 622 | { |
| 623 | writeUInt32LEcxx . . $ CppUtilities/BinaryWriter#writeUInt32LE(cb2f890c2fdad230).(toFixed16cxx . . $ CppUtilities/toFixed16(126a58af4772d7ea).(valueToConvertAndWrite)); |
| 624 | } |
| 625 | |
| 626 | /*! |
| 627 | * \brief Writes a single character to the current stream and advances the current position of the stream by one byte. |
| 628 | */ |
| 629 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(44b6ea1973a07080).(char oneChar) |
| 630 | { |
| 631 | writeCharcxx . . $ CppUtilities/BinaryWriter#writeChar(44b6ea1973a07080).(oneChar); |
| 632 | } |
| 633 | |
| 634 | /*! |
| 635 | * \brief Writes a single byte to the current stream and advances the current position of the stream by one byte. |
| 636 | */ |
| 637 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(ac50b47256ae7414).(stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# oneByte) |
| 638 | { |
| 639 | writeBytecxx . . $ CppUtilities/BinaryWriter#writeByte(ac50b47256ae7414).(oneByte); |
| 640 | } |
| 641 | |
| 642 | /*! |
| 643 | * \brief Writes a boolean value to the current stream and advances the current position of the stream by one byte. |
| 644 | */ |
| 645 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(b45ddcbc8423892c).(bool oneBool) |
| 646 | { |
| 647 | writeBoolcxx . . $ CppUtilities/BinaryWriter#writeBool(b45ddcbc8423892c).(oneBool); |
| 648 | } |
| 649 | |
| 650 | /*! |
| 651 | * \brief Writes the length of a string and the string itself to the current stream. |
| 652 | * |
| 653 | * Advances the current position of the stream by the length of the string plus the size of the length prefix. |
| 654 | */ |
| 655 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &lengthPrefixedString) |
| 656 | { |
| 657 | writeLengthPrefixedStringcxx . . $ CppUtilities/BinaryWriter#writeLengthPrefixedString(9c546c94e5fcce4e).(lengthPrefixedString); |
| 658 | } |
| 659 | |
| 660 | /*! |
| 661 | * \brief Writes the length of a string and the string itself to the current stream. |
| 662 | * |
| 663 | * Advances the current position of the stream by the length of the string plus the size of the length prefix. |
| 664 | */ |
| 665 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(c8024318075daf50).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# lengthPrefixedString) |
| 666 | { |
| 667 | writeLengthPrefixedCStringcxx . . $ CppUtilities/BinaryWriter#writeLengthPrefixedCString(7cafb6e0818eff3b).(lengthPrefixedString.datacxx . . $ std/basic_string_view#data(8e614c7de0b1573e).(), lengthPrefixedString.sizecxx . . $ std/basic_string_view#size(c9b1e749b64d5edc).()); |
| 668 | } |
| 669 | |
| 670 | /*! |
| 671 | * \brief Writes the length of a string and the string itself to the current stream. |
| 672 | * |
| 673 | * Advances the current position of the stream by the length of the string plus the size of the length prefix. |
| 674 | */ |
| 675 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(85c52e162fed56f9).(const char *lengthPrefixedString) |
| 676 | { |
| 677 | writeLengthPrefixedCStringcxx . . $ CppUtilities/BinaryWriter#writeLengthPrefixedCString(7cafb6e0818eff3b).(lengthPrefixedString, stdcxx . . $ std/::strlen(lengthPrefixedString)); |
| 678 | } |
| 679 | |
| 680 | /*! |
| 681 | * \brief Writes a 16-bit big endian signed integer to the current stream and advances the current position of the stream by two bytes. |
| 682 | */ |
| 683 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(68e3ae50fe6578a9).(stdcxx . . $ std/::int16_tcxx . . $ std/int16_t# one16BitInt) |
| 684 | { |
| 685 | writeInt16BEcxx . . $ CppUtilities/BinaryWriter#writeInt16BE(68e3ae50fe6578a9).(one16BitInt); |
| 686 | } |
| 687 | |
| 688 | /*! |
| 689 | * \brief Writes a 16-bit big endian unsigned integer to the current stream and advances the current position of the stream by two bytes. |
| 690 | */ |
| 691 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(ed53e3bbd3fa2f69).(stdcxx . . $ std/::uint16_tcxx . . $ std/uint16_t# one16BitUint) |
| 692 | { |
| 693 | writeUInt16BEcxx . . $ CppUtilities/BinaryWriter#writeUInt16BE(ed53e3bbd3fa2f69).(one16BitUint); |
| 694 | } |
| 695 | |
| 696 | /*! |
| 697 | * \brief Writes a 32-bit big endian signed integer to the current stream and advances the current position of the stream by four bytes. |
| 698 | */ |
| 699 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(d4f767463ce0a6b3).(stdcxx . . $ std/::int32_tcxx . . $ std/int32_t# one32BitInt) |
| 700 | { |
| 701 | writeInt32BEcxx . . $ CppUtilities/BinaryWriter#writeInt32BE(d4f767463ce0a6b3).(one32BitInt); |
| 702 | } |
| 703 | |
| 704 | /*! |
| 705 | * \brief Writes a 32-bit big endian unsigned integer to the current stream and advances the current position of the stream by four bytes. |
| 706 | */ |
| 707 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(cb2f890c2fdad230).(stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# one32BitUint) |
| 708 | { |
| 709 | writeUInt32BEcxx . . $ CppUtilities/BinaryWriter#writeUInt32BE(cb2f890c2fdad230).(one32BitUint); |
| 710 | } |
| 711 | |
| 712 | /*! |
| 713 | * \brief Writes a 64-bit big endian signed integer to the current stream and advances the current position of the stream by eight bytes. |
| 714 | */ |
| 715 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(1624ee8275b10bda).(stdcxx . . $ std/::int64_tcxx . . $ std/int64_t# one64BitInt) |
| 716 | { |
| 717 | writeInt64BEcxx . . $ CppUtilities/BinaryWriter#writeInt64BE(1624ee8275b10bda).(one64BitInt); |
| 718 | } |
| 719 | |
| 720 | /*! |
| 721 | * \brief Writes a 64-bit big endian unsigned integer to the current stream and advances the current position of the stream by eight bytes. |
| 722 | */ |
| 723 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(2c44cd906ae4e829).(stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t# one64BitUint) |
| 724 | { |
| 725 | writeUInt64BEcxx . . $ CppUtilities/BinaryWriter#writeUInt64BE(2c44cd906ae4e829).(one64BitUint); |
| 726 | } |
| 727 | |
| 728 | /*! |
| 729 | * \brief Writes a 32-bit big endian floating point \a value to the current stream and advances the current position of the stream by four bytes. |
| 730 | */ |
| 731 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(9364e6e7bff7660).(float one32BitFloat) |
| 732 | { |
| 733 | writeFloat32BEcxx . . $ CppUtilities/BinaryWriter#writeFloat32BE(9364e6e7bff7660).(one32BitFloat); |
| 734 | } |
| 735 | |
| 736 | /*! |
| 737 | * \brief Writes a 64-bit big endian floating point \a value to the current stream and advances the current position of the stream by eight bytes. |
| 738 | */ |
| 739 | inline void BinaryWritercxx . . $ CppUtilities/BinaryWriter#::writecxx . . $ CppUtilities/BinaryWriter#write(ba8836b59fb42830).(double one64BitFloat) |
| 740 | { |
| 741 | writeFloat64BEcxx . . $ CppUtilities/BinaryWriter#writeFloat64BE(ba8836b59fb42830).(one64BitFloat); |
| 742 | } |
| 743 | } // namespace CppUtilities |
| 744 | |
| 745 | #endif // IO_UTILITIES_BINARYWRITER_H |