MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / TryReadUint64LE

Method TryReadUint64LE

src/core/string_consumer.hpp:314–319  ·  view source on GitHub ↗

* Try to read binary uint64, and then advance reader. */

Source from the content-addressed store, hash-verified

312 * Try to read binary uint64, and then advance reader.
313 */
314 [[nodiscard]] std::optional<uint64_t> TryReadUint64LE()
315 {
316 auto value = this->PeekUint64LE();
317 if (value.has_value()) this->SkipUint64LE();
318 return value;
319 }
320 /**
321 * Read binary uint64 using little endian, and advance reader.
322 * @param def Default value to return, if not enough data.

Callers

nothing calls this directly

Calls 2

PeekUint64LEMethod · 0.95
SkipUint64LEMethod · 0.95

Tested by

no test coverage detected