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

Method GetLeftData

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

* Get data left to read. */

Source from the content-addressed store, hash-verified

94 * Get data left to read.
95 */
96 [[nodiscard]] std::string_view GetLeftData() const noexcept { return this->src.substr(this->position); }
97
98 /**
99 * Discard all remaining data.

Callers 4

GetDriverParamFunction · 0.80
LoadFromDiskMethod · 0.80
OnReceiveDataMethod · 0.80

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected