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

Method AtEndOfFile

src/random_access_file.cpp:80–83  ·  view source on GitHub ↗

* Test if we have reached the end of the file. * @return True iff the current position as at or after the end of the file. */

Source from the content-addressed store, hash-verified

78 * @return True iff the current position as at or after the end of the file.
79 */
80bool RandomAccessFile::AtEndOfFile() const
81{
82 return this->GetPos() >= this->GetEndPos();
83}
84
85/**
86 * Seek in the current file.

Callers 6

BmpRead1Function · 0.80
BmpRead4Function · 0.80
BmpRead4RleFunction · 0.80
BmpRead8Function · 0.80
BmpRead8RleFunction · 0.80
BmpRead24Function · 0.80

Calls 2

GetPosMethod · 0.95
GetEndPosMethod · 0.95

Tested by

no test coverage detected