Filesystem utilities.

Namespaces

Classes

Enumerations

Enumeration Type Documentation

BLFileOpenFlags

enum BLFileOpenFlags : uint32_t

File open flags, see BLFile::open().

ConstantDescription
BL_FILE_OPEN_READ 

Open file for reading (O_RDONLY).

BL_FILE_OPEN_WRITE 

Open file for writing (O_WRONLY).

BL_FILE_OPEN_RW 

Open file for reading & writing (O_RDWR).

BL_FILE_OPEN_CREATE 

Create the file if it doesn't exist (O_CREAT).

BL_FILE_OPEN_CREATE_ONLY 

Always create the file, fail if it already exists (O_EXCL).

BL_FILE_OPEN_TRUNCATE 

Truncate the file (O_TRUNC).

BL_FILE_OPEN_SHARE_READ 

Enables FILE_SHARE_READ option (Windows).

BL_FILE_OPEN_SHARE_WRITE 

Enables FILE_SHARE_WRITE option (Windows).

BL_FILE_OPEN_SHARE_RW 

Enables both FILE_SHARE_READ and FILE_SHARE_WRITE options (Windows).

BL_FILE_OPEN_SHARE_DELETE 

Enables FILE_SHARE_DELETE option (Windows).

BLFileSeek

enum BLFileSeek : uint32_t

File seek mode, see BLFile::seek().

NOTE: Seek constants should be compatible with constants used by both POSIX and Windows API.

ConstantDescription
BL_FILE_SEEK_SET 

Seek from the beginning of the file (SEEK_SET).

BL_FILE_SEEK_CUR 

Seek from the current position (SEEK_CUR).

BL_FILE_SEEK_END 

Seek from the end of the file (SEEK_END).

BL_FILE_SEEK_COUNT 

Count of seek modes.