MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetFileSize

Function GetFileSize

src/util/system.cpp:168–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168std::streampos GetFileSize(const char* path, std::streamsize max) {
169 std::ifstream file{path, std::ios::binary};
170 file.ignore(max);
171 return file.gcount();
172}
173
174/**
175 * Interpret a string argument as a boolean.

Callers 1

gotoLoadPSBTMethod · 0.50

Calls 1

ignoreMethod · 0.45

Tested by

no test coverage detected