BLFile Class Reference

A thin abstraction over a native OS file IO [C++ API].

A thin wrapper around a native OS file support. The file handle is always intptr_t and it refers to either a file descriptor on POSIX targets and file handle on Windows targets.

Member Functions

Construction & Destruction
Common Functionality
File API

Additional Inherited Members

- Public Attributes inherited from BLFileCore

Member Function Documentation

bool BLFile::isOpen() const

Tests whether the file is open.

BLResult BLFile::close()

Closes the file (if open) and sets the file handle to -1.