|
bool | IsValid () const override |
| IsValid.
|
|
Status | Close () override |
| Flush any buffers and release any resources owned by the file.
|
|
bool | isA (const void *classID) const override |
|
| NativeFile () |
|
| NativeFile (FILE *fh, bool transfer_ownership) |
|
| NativeFile (int fd, OpenOptions options, bool transfer_ownership) |
|
| ~NativeFile () override |
|
bool | IsValid () const override |
| IsValid.
|
|
Status | Read (void *buf, size_t &num_bytes) override |
| Read bytes from a file from the current file position into buf.
|
|
Status | Write (const void *buf, size_t &num_bytes) override |
| Write bytes from buf to a file at the current file position.
|
|
Status | Close () override |
| Flush any buffers and release any resources owned by the file.
|
|
WaitableHandle | GetWaitableHandle () override |
| Get a handle that can be used for OS polling interfaces, such as WaitForMultipleObjects, select, or epoll.
|
|
Status | GetFileSpec (FileSpec &file_spec) const override |
| Get the file specification for this file, if possible.
|
|
int | GetDescriptor () const override |
| Get underlying OS file descriptor for this file, or kInvalidDescriptor.
|
|
FILE * | GetStream () override |
| Get the underlying libc stream for this file, or NULL.
|
|
off_t | SeekFromStart (off_t offset, Status *error_ptr=nullptr) override |
| Seek to an offset relative to the beginning of the file.
|
|
off_t | SeekFromCurrent (off_t offset, Status *error_ptr=nullptr) override |
| Seek to an offset relative to the current file position.
|
|
off_t | SeekFromEnd (off_t offset, Status *error_ptr=nullptr) override |
| Seek to an offset relative to the end of the file.
|
|
Status | Read (void *dst, size_t &num_bytes, off_t &offset) override |
| Read bytes from a file from the specified file offset.
|
|
Status | Write (const void *src, size_t &num_bytes, off_t &offset) override |
| Write bytes to a file at the specified file offset.
|
|
Status | Flush () override |
| Flush the current stream.
|
|
Status | Sync () override |
| Sync to disk.
|
|
size_t | PrintfVarArg (const char *format, va_list args) override |
| Output printf formatted output to the stream.
|
|
llvm::Expected< OpenOptions > | GetOptions () const override |
| Return the OpenOptions for this file.
|
|
bool | isA (const void *classID) const override |
|
| File () |
|
Status | Read (void *buf, size_t &num_bytes) override |
| Read bytes from a file from the current file position into buf.
|
|
Status | Write (const void *buf, size_t &num_bytes) override |
| Write bytes from buf to a file at the current file position.
|
|
bool | IsValid () const override |
| IsValid.
|
|
Status | Close () override |
| Flush any buffers and release any resources owned by the file.
|
|
WaitableHandle | GetWaitableHandle () override |
| Get a handle that can be used for OS polling interfaces, such as WaitForMultipleObjects, select, or epoll.
|
|
virtual Status | GetFileSpec (FileSpec &file_spec) const |
| Get the file specification for this file, if possible.
|
|
virtual int | GetDescriptor () const |
| Get underlying OS file descriptor for this file, or kInvalidDescriptor.
|
|
virtual FILE * | GetStream () |
| Get the underlying libc stream for this file, or NULL.
|
|
virtual off_t | SeekFromStart (off_t offset, Status *error_ptr=nullptr) |
| Seek to an offset relative to the beginning of the file.
|
|
virtual off_t | SeekFromCurrent (off_t offset, Status *error_ptr=nullptr) |
| Seek to an offset relative to the current file position.
|
|
virtual off_t | SeekFromEnd (off_t offset, Status *error_ptr=nullptr) |
| Seek to an offset relative to the end of the file.
|
|
virtual Status | Read (void *dst, size_t &num_bytes, off_t &offset) |
| Read bytes from a file from the specified file offset.
|
|
virtual Status | Write (const void *src, size_t &num_bytes, off_t &offset) |
| Write bytes to a file at the specified file offset.
|
|
virtual Status | Flush () |
| Flush the current stream.
|
|
virtual Status | Sync () |
| Sync to disk.
|
|
size_t | Printf (const char *format,...) __attribute__((format(printf |
| Output printf formatted output to the stream.
|
|
size_t virtual size_t | PrintfVarArg (const char *format, va_list args) |
| Output printf formatted output to the stream.
|
|
virtual llvm::Expected< OpenOptions > | GetOptions () const |
| Return the OpenOptions for this file.
|
|
llvm::Expected< const char * > | GetOpenMode () const |
|
uint32_t | GetPermissions (Status &error) const |
| Get the permissions for a this file.
|
|
bool | GetIsInteractive () |
| Return true if this file is interactive.
|
|
bool | GetIsRealTerminal () |
| Return true if this file from a real terminal.
|
|
bool | GetIsTerminalWithColors () |
| Return true if this file is a terminal which supports colors.
|
|
| operator bool () const |
|
bool | operator! () const |
|
virtual bool | isA (const void *classID) const |
|
| IOObject (FDType type) |
|
virtual | ~IOObject () |
|
virtual Status | Read (void *buf, size_t &num_bytes)=0 |
|
virtual Status | Write (const void *buf, size_t &num_bytes)=0 |
|
virtual bool | IsValid () const =0 |
|
virtual Status | Close ()=0 |
|
FDType | GetFdType () const |
|
virtual WaitableHandle | GetWaitableHandle ()=0 |
|
Definition at line 458 of file File.h.