Blend2D
2D Vector Graphics Engine
Filesystem utilities.
Blend2D doesn't do much with filesystem, however, since the library provides API for loading and saving raster images and for loading font files, it internally needs a lightweight filesystem access. The API is also provided for users that would like to use a very simple API to access a filesystem.
stat()
or a similar function under Windows)File information flags, used by BLFileInfo.
Constant | Description |
---|---|
BL_FILE_INFO_OWNER_R | File owner has read permission (compatible with 0400 octal notation). |
BL_FILE_INFO_OWNER_W | File owner has write permission (compatible with 0200 octal notation). |
BL_FILE_INFO_OWNER_X | File owner has execute permission (compatible with 0100 octal notation). |
BL_FILE_INFO_OWNER_MASK | A combination of BL_FILE_INFO_OWNER_R, BL_FILE_INFO_OWNER_W, and BL_FILE_INFO_OWNER_X. |
BL_FILE_INFO_GROUP_R | File group owner has read permission (compatible with 040 octal notation). |
BL_FILE_INFO_GROUP_W | File group owner has write permission (compatible with 020 octal notation). |
BL_FILE_INFO_GROUP_X | File group owner has execute permission (compatible with 010 octal notation). |
BL_FILE_INFO_GROUP_MASK | A combination of BL_FILE_INFO_GROUP_R, BL_FILE_INFO_GROUP_W, and BL_FILE_INFO_GROUP_X. |
BL_FILE_INFO_OTHER_R | Other users have read permission (compatible with 04 octal notation). |
BL_FILE_INFO_OTHER_W | Other users have write permission (compatible with 02 octal notation). |
BL_FILE_INFO_OTHER_X | Other users have execute permission (compatible with 01 octal notation). |
BL_FILE_INFO_OTHER_MASK | A combination of BL_FILE_INFO_OTHER_R, BL_FILE_INFO_OTHER_W, and BL_FILE_INFO_OTHER_X. |
BL_FILE_INFO_SUID | Set user ID to file owner user ID on execution (compatible with 04000 octal notation). |
BL_FILE_INFO_SGID | Set group ID to file's user group ID on execution (compatible with 02000 octal notation). |
BL_FILE_INFO_PERMISSIONS_MASK | A combination of all file permission bits. |
BL_FILE_INFO_REGULAR | A flag specifying that this is a regular file. |
BL_FILE_INFO_DIRECTORY | A flag specifying that this is a directory. |
BL_FILE_INFO_SYMLINK | A flag specifying that this is a symbolic link. |
BL_FILE_INFO_CHAR_DEVICE | A flag describing a character device. |
BL_FILE_INFO_BLOCK_DEVICE | A flag describing a block device. |
BL_FILE_INFO_FIFO | A flag describing a FIFO (named pipe). |
BL_FILE_INFO_SOCKET | A flag describing a socket. |
BL_FILE_INFO_HIDDEN | A flag describing a hidden file (Windows only). |
BL_FILE_INFO_EXECUTABLE | A flag describing a hidden file (Windows only). |
BL_FILE_INFO_ARCHIVE | A flag describing an archive (Windows only). |
BL_FILE_INFO_SYSTEM | A flag describing a system file (Windows only). |
BL_FILE_INFO_VALID | File information is valid (the request succeeded). |
File open flags, see BLFile::open().
File seek mode, see BLFile::seek().
File read flags used by BLFileSystem::readFile().
Constant | Description |
---|---|
BL_FILE_READ_NO_FLAGS | No flags. |
BL_FILE_READ_MMAP_ENABLED | Use memory mapping to read the content of the file. The destination buffer |
BL_FILE_READ_MMAP_AVOID_SMALL | Avoid memory mapping of small files. The size of small file is determined by Blend2D, however, you should expect it to be 16kB or 64kB depending on host operating system. |
BL_FILE_READ_MMAP_NO_FALLBACK | Do not fallback to regular read if memory mapping fails. It's worth noting that memory mapping would fail for files stored on filesystem that is not local (like a mounted network filesystem, etc...). |