* Try to read binary uint32, and then advance reader. */
| 243 | * Try to read binary uint32, and then advance reader. |
| 244 | */ |
| 245 | [[nodiscard]] std::optional<uint32_t> TryReadUint32LE() |
| 246 | { |
| 247 | auto value = this->PeekUint32LE(); |
| 248 | if (value.has_value()) this->SkipUint32LE(); |
| 249 | return value; |
| 250 | } |
| 251 | /** |
| 252 | * Read binary uint32 using little endian, and advance reader. |
| 253 | * @param def Default value to return, if not enough data. |
no test coverage detected