MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / GetFileSize

Function GetFileSize

tests/gtest/gtest-all.cc:10915–10918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10913
10914
10915size_t GetFileSize(FILE* file) {
10916 fseek(file, 0, SEEK_END);
10917 return static_cast<size_t>(ftell(file));
10918}
10919
10920std::string ReadEntireFile(FILE* file) {
10921 const size_t file_size = GetFileSize(file);

Callers 1

ReadEntireFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected