MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getFileLength

Function getFileLength

src/Core/src/FileStream.cpp:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 static size_t getFileLength(FILE* fs)
69 {
70 const auto current = fileTell(fs);
71 fileSeek(fs, 0, SEEK_END);
72 const auto length = fileTell(fs);
73 fileSeek(fs, current, SEEK_SET);
74 return length;
75 }
76
77 FileStream::FileStream(const std::filesystem::path& path, StreamMode mode)
78 {

Callers 1

openMethod · 0.85

Calls 2

fileTellFunction · 0.85
fileSeekFunction · 0.85

Tested by

no test coverage detected