Home | History | Annotate | Download | only in unix_file

Lines Matching refs:FdFile

26 FdFile::FdFile() : fd_(-1), auto_close_(true) {
29 FdFile::FdFile(int fd) : fd_(fd), auto_close_(true) {
32 FdFile::FdFile(int fd, const std::string& path) : fd_(fd), file_path_(path), auto_close_(true) {
36 FdFile::~FdFile() {
42 void FdFile::DisableAutoClose() {
46 bool FdFile::Open(const std::string& path, int flags) {
50 bool FdFile::Open(const std::string& path, int flags, mode_t mode) {
60 int FdFile::Close() {
71 int FdFile::Flush() {
76 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const {
81 int FdFile::SetLength(int64_t new_length) {
86 int64_t FdFile::GetLength() const {
92 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) {
97 int FdFile::Fd() const {
101 bool FdFile::IsOpened() const {
105 std::string FdFile::GetPath() const {
109 bool FdFile::ReadFully(void* buffer, int64_t byte_count) {
122 bool FdFile::WriteFully(const void* buffer, int64_t byte_count) {