* Read binary uint32 using little endian, and advance reader. * @param def Default value to return, if not enough data. * @return Read integer, 'def' if not enough data. * @note The reader is advanced, even if not enough data was present. */
| 255 | * @note The reader is advanced, even if not enough data was present. |
| 256 | */ |
| 257 | [[nodiscard]] uint32_t ReadUint32LE(uint32_t def = 0) |
| 258 | { |
| 259 | auto value = this->PeekUint32LE(); |
| 260 | this->SkipUint32LE(); // always advance |
| 261 | return value.value_or(def); |
| 262 | } |
| 263 | /** |
| 264 | * Skip binary uint32, and advance reader. |
| 265 | * @note The reader is advanced, even if not enough data was present. |
no test coverage detected