Public Types |
enum | { DEFAULT_BUFFER_SIZE = 32768
} |
Public Methods |
| File () |
| Default constructor. More...
|
| File (const std::string &cPath, int nOpenMode=O_RDONLY) |
| Construct a file from a regular path. More...
|
| File (const Directory &cDir, const std::string &cName, int nOpenMode=O_RDONLY) |
| Open a file addressed as a name inside a specified directory. More...
|
| File (const FileReference &cRef, int nOpenMode=O_RDONLY) |
| Open a file referred to by a os::FileReference. More...
|
| File (const FSNode &cNode) |
| Construct a file from a FSNode. More...
|
| File (const File &cFile) |
| Copy constructos. More...
|
virtual | ~File () |
virtual status_t | FDChanged (int nNewFD, const struct::stat &sStat) |
virtual off_t | GetSize (bool bUpdateCache=true) const |
virtual ssize_t | Read (void *pBuffer, ssize_t nSize) |
virtual ssize_t | Write (const void *pBuffer, ssize_t nSize) |
virtual ssize_t | ReadPos (off_t nPos, void *pBuffer, ssize_t nSize) |
virtual ssize_t | WritePos (off_t nPos, const void *pBuffer, ssize_t nSize) |
virtual off_t | Seek (off_t nPos, int nMode) |
| Move the file pointer. More...
|
status_t | SetBufferSize (int nSize) |
| Set the size of the files caching buffer. More...
|
int | GetBufferSize () const |
| Obtain the files buffer size. More...
|
status_t | Flush () |
| Write unwritten data to the underlying file. More...
|