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

Method PeekUint8

src/core/string_consumer.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38std::optional<uint8_t> StringConsumer::PeekUint8() const
39{
40 if (this->GetBytesLeft() < 1) return std::nullopt;
41 return static_cast<uint8_t>(this->src[this->position]);
42}
43
44std::optional<uint16_t> StringConsumer::PeekUint16LE() const
45{

Callers 4

TryReadUint8Method · 0.95
ReadUint8Method · 0.95
PeekCharMethod · 0.95

Calls 1

GetBytesLeftMethod · 0.95

Tested by

no test coverage detected