MCPcopy Create free account
hub / github.com/BVLC/caffe / GetFileSize

Method GetFileSize

src/gtest/gtest-all.cpp:8357–8360  ·  view source on GitHub ↗

Returns the size (in bytes) of a file.

Source from the content-addressed store, hash-verified

8355
8356// Returns the size (in bytes) of a file.
8357size_t CapturedStream::GetFileSize(FILE* file) {
8358 fseek(file, 0, SEEK_END);
8359 return static_cast<size_t>(ftell(file));
8360}
8361
8362// Reads the entire content of a file as a string.
8363String CapturedStream::ReadEntireFile(FILE* file) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected