#include "util/file/file_reader.h"
#include "base/check_op.h"
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
#include "build/build_config.h"
namespace crashpad {
namespace {
class FileReaderReadExactly final : public internal::ReadExactlyInternal { … };
}
bool FileReaderInterface::ReadExactly(void* data, size_t size) { … }
WeakFileHandleFileReader::WeakFileHandleFileReader(FileHandle file_handle)
: … { … }
WeakFileHandleFileReader::~WeakFileHandleFileReader() { … }
FileOperationResult WeakFileHandleFileReader::Read(void* data, size_t size) { … }
FileOffset WeakFileHandleFileReader::Seek(FileOffset offset, int whence) { … }
FileReader::FileReader()
: … { … }
FileReader::~FileReader() { … }
bool FileReader::Open(const base::FilePath& path) { … }
void FileReader::Close() { … }
FileOperationResult FileReader::Read(void* data, size_t size) { … }
FileOffset FileReader::Seek(FileOffset offset, int whence) { … }
}