Returns the size (in bytes) of a file.
| 8807 | |
| 8808 | // Returns the size (in bytes) of a file. |
| 8809 | size_t CapturedStream::GetFileSize(FILE* file) { |
| 8810 | fseek(file, 0, SEEK_END); |
| 8811 | return static_cast<size_t>(ftell(file)); |
| 8812 | } |
| 8813 | |
| 8814 | // Reads the entire content of a file as a string. |
| 8815 | std::string CapturedStream::ReadEntireFile(FILE* file) { |
nothing calls this directly
no outgoing calls
no test coverage detected