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

Method GetBytesLeft

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

* Get number of bytes left to read. */

Source from the content-addressed store, hash-verified

72 * Get number of bytes left to read.
73 */
74 [[nodiscard]] size_type GetBytesLeft() const noexcept { return this->src.size() - this->position; }
75
76 /**
77 * Check whether any bytes were already read.

Callers 9

PeekUint8Method · 0.95
PeekUint16LEMethod · 0.95
PeekUint32LEMethod · 0.95
PeekUint64LEMethod · 0.95
SQFileClass · 0.80
RemainingMethod · 0.80
HasDataMethod · 0.80
string_inplace.cppFile · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected