Lines Matching refs:FdFile
26 FdFile::FdFile() : fd_(-1), auto_close_(true) { in FdFile() function in unix_file::FdFile
29 FdFile::FdFile(int fd) : fd_(fd), auto_close_(true) { in FdFile() function in unix_file::FdFile
32 FdFile::FdFile(int fd, const std::string& path) : fd_(fd), file_path_(path), auto_close_(true) { in FdFile() function in unix_file::FdFile
36 FdFile::~FdFile() { in ~FdFile()
42 void FdFile::DisableAutoClose() { in DisableAutoClose()
46 bool FdFile::Open(const std::string& path, int flags) { in Open()
50 bool FdFile::Open(const std::string& path, int flags, mode_t mode) { in Open()
60 int FdFile::Close() { in Close()
71 int FdFile::Flush() { in Flush()
80 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read()
89 int FdFile::SetLength(int64_t new_length) { in SetLength()
98 int64_t FdFile::GetLength() const { in GetLength()
104 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write()
113 int FdFile::Fd() const { in Fd()
117 bool FdFile::IsOpened() const { in IsOpened()
121 bool FdFile::ReadFully(void* buffer, size_t byte_count) { in ReadFully()
136 bool FdFile::WriteFully(const void* buffer, size_t byte_count) { in WriteFully()