MCPcopy Create free account
hub / github.com/PDAL/PDAL / fileSize

Function fileSize

pdal/util/FileUtils.cpp:320–328  ·  view source on GitHub ↗

\return 0 on error or invalid file type.

Source from the content-addressed store, hash-verified

318
319/// \return 0 on error or invalid file type.
320uintmax_t fileSize(const std::string& file)
321{
322 VSIStatBufL sStat;
323 if (VSIStatL(file.c_str(), &sStat) == 0)
324 {
325 return sStat.st_size;
326 }
327 return 0;
328}
329
330
331std::string readFileIntoString(const std::string& filename)

Callers 1

mapFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected