#include "util/file/file_io.h"
#include "base/check_op.h"
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
namespace crashpad {
namespace {
class FileIOReadExactly final : public internal::ReadExactlyInternal { … };
class FileIOWriteAll final : public internal::WriteAllInternal { … };
}
namespace internal {
bool ReadExactlyInternal::ReadExactly(void* buffer, size_t size, bool can_log) { … }
bool WriteAllInternal::WriteAll(const void* buffer, size_t size) { … }
}
bool ReadFileExactly(FileHandle file, void* buffer, size_t size) { … }
bool LoggingReadFileExactly(FileHandle file, void* buffer, size_t size) { … }
bool WriteFile(FileHandle file, const void* buffer, size_t size) { … }
bool LoggingWriteFile(FileHandle file, const void* buffer, size_t size) { … }
void CheckedReadFileExactly(FileHandle file, void* buffer, size_t size) { … }
void CheckedWriteFile(FileHandle file, const void* buffer, size_t size) { … }
void CheckedReadFileAtEOF(FileHandle file) { … }
bool LoggingReadToEOF(FileHandle file, std::string* contents) { … }
bool LoggingReadEntireFile(const base::FilePath& path, std::string* contents) { … }
void CheckedCloseFile(FileHandle file) { … }
}