Returns the size (in bytes) of a file.
| 8355 | |
| 8356 | // Returns the size (in bytes) of a file. |
| 8357 | size_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. |
| 8363 | String CapturedStream::ReadEntireFile(FILE* file) { |
nothing calls this directly
no outgoing calls
no test coverage detected