class FileReaderInterface
Defined at line 28 of file ../../third_party/crashpad/src/util/file/file_reader.h
An interface to read to files and other file-like objects with
semantics matching the underlying platform (POSIX or Windows).
Public Methods
FileOperationResult Read (void * data, size_t size)
Wraps ReadFile(), or provides an implementation with identical
semantics.
Returns
The number of bytes actually read if the operation succeeded,
which may be `0` or any positive value less than or equal to
`-1` if the operation failed, with an error message logged.
bool ReadExactly (void * data, size_t size)
Wraps Read(), ensuring that the read succeeded and exactly
bytes were read.
Semantically, this behaves as LoggingReadFileExactly().
Returns
`true` if the operation succeeded, `false` if it failed, with an
error message logged. Short reads are treated as failures.
void ~FileReaderInterface ()
Defined at line 30 of file ../../third_party/crashpad/src/util/file/file_reader.h