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

Method AnyBytesUnused

src/core/string_inplace.cpp:19–22  ·  view source on GitHub ↗

* Check whether any unused bytes are left between the Builder and Consumer position. */

Source from the content-addressed store, hash-verified

17 * Check whether any unused bytes are left between the Builder and Consumer position.
18 */
19[[nodiscard]] bool InPlaceBuilder::AnyBytesUnused() const noexcept
20{
21 return this->consumer.GetBytesRead() > this->position;
22}
23
24/**
25 * Get number of unused bytes left between the Builder and Consumer position.

Callers 2

StrMakeValidInPlaceFunction · 0.80
string_inplace.cppFile · 0.80

Calls 1

GetBytesReadMethod · 0.80

Tested by

no test coverage detected