Lines Matching refs:FileHandle

29 FileHandle::FileHandle()  in FileHandle()  function in mcld::FileHandle
37 FileHandle::~FileHandle() { in ~FileHandle()
42 inline static int oflag(FileHandle::OpenMode pMode) { in oflag()
44 if (FileHandle::Unknown == pMode) in oflag()
47 if (FileHandle::ReadWrite == (pMode & FileHandle::ReadWrite)) in oflag()
49 else if (FileHandle::ReadOnly == (pMode & FileHandle::ReadOnly)) in oflag()
51 else if (FileHandle::WriteOnly == (pMode & FileHandle::WriteOnly)) in oflag()
54 if (FileHandle::Append == (pMode & FileHandle::Append)) in oflag()
57 if (FileHandle::Create == (pMode & FileHandle::Create)) in oflag()
60 if (FileHandle::Truncate == (pMode & FileHandle::Truncate)) in oflag()
76 bool FileHandle::open(const sys::fs::Path& pPath, in open()
77 FileHandle::OpenMode pMode, in open()
78 FileHandle::Permission pPerm) { in open()
106 bool FileHandle::delegate(int pFD, FileHandle::OpenModeEnum pMode) { in delegate()
124 bool FileHandle::close() { in close()
144 bool FileHandle::truncate(size_t pSize) { in truncate()
159 bool FileHandle::read(void* pMemBuffer, size_t pStartOffset, size_t pLength) { in read()
179 bool FileHandle::write(const void* pMemBuffer, in write()
201 void FileHandle::setState(FileHandle::IOState pState) { in setState()
205 void FileHandle::cleanState(FileHandle::IOState pState) { in cleanState()
209 bool FileHandle::isOpened() const { in isOpened()
217 bool FileHandle::isReadable() const { in isReadable()
222 bool FileHandle::isWritable() const { in isWritable()
227 bool FileHandle::isReadWrite() const { in isReadWrite()
228 return (FileHandle::ReadWrite == (m_OpenMode & FileHandle::ReadWrite)); in isReadWrite()
231 bool FileHandle::isGood() const { in isGood()
235 bool FileHandle::isBad() const { in isBad()
239 bool FileHandle::isFailed() const { in isFailed()
243 bool FileHandle::isOwned() const { in isOwned()