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

Method RemainingBytesToTransfer

src/network/core/packet.cpp:447–450  ·  view source on GitHub ↗

* Get the amount of bytes that are still available for the Transfer functions. * @return The number of bytes that still have to be transferred. */

Source from the content-addressed store, hash-verified

445 * @return The number of bytes that still have to be transferred.
446 */
447size_t Packet::RemainingBytesToTransfer() const
448{
449 return this->Size() - this->pos;
450}

Callers 7

TransferOutWithLimitMethod · 0.95
TransferInMethod · 0.95
ReceiveRequestMethod · 0.80
ReceiveResponseMethod · 0.80
SendPacketsMethod · 0.80
ReceivePacketMethod · 0.80

Calls 1

SizeMethod · 0.95

Tested by

no test coverage detected