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

Method GetBytesUnused

src/core/string_inplace.cpp:27–30  ·  view source on GitHub ↗

* Get number of unused bytes left between the Builder and Consumer position. */

Source from the content-addressed store, hash-verified

25 * Get number of unused bytes left between the Builder and Consumer position.
26 */
27[[nodiscard]] InPlaceBuilder::size_type InPlaceBuilder::GetBytesUnused() const noexcept
28{
29 return this->consumer.GetBytesRead() - this->position;
30}
31
32/**
33 * Append buffer.

Callers 2

PutBufferMethod · 0.95
string_inplace.cppFile · 0.80

Calls 1

GetBytesReadMethod · 0.80

Tested by

no test coverage detected