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

Method GetPos

src/random_access_file.cpp:71–74  ·  view source on GitHub ↗

* Get position in the file. * @return Position in the file. */

Source from the content-addressed store, hash-verified

69 * @return Position in the file.
70 */
71size_t RandomAccessFile::GetPos() const
72{
73 return this->pos + (this->buffer - this->buffer_end);
74}
75
76/**
77 * Test if we have reached the end of the file.

Callers 14

AtEndOfFileMethod · 0.95
SeekToMethod · 0.95
LoadMethod · 0.80
ReadGRFSpriteOffsetsFunction · 0.80
LoadNextSpriteFunction · 0.80
BmpReadHeaderFunction · 0.80
OpenBankFileFunction · 0.80
LoadSoundDataFunction · 0.80
LoadSpriteV2Function · 0.80
GetGRFContainerVersionFunction · 0.80
SpriteFileMethod · 0.80
DefineGotoLabelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected