TBLFileOpenFlag
File open flags.
Definition
Unit: Blend2D
type TBLFileOpenFlag = (Read, Write, Create, Delete, Truncate, ReadExclusive, WriteExclusive, CreateExclusive, DeleteExclusive)
See Also
Enumeration Values
Read = 0
Opens the file for reading.
The following system flags are used when opening the file:
- O_RDONLY
(Posix)
- GENERIC_READ
(Windows)
Write = 1
Opens the file for writing:
The following system flags are used when opening the file:
- O_WRONLY
(Posix)
- GENERIC_WRITE
(Windows)
Create = 2
Creates the file if it doesn't exist or opens it if it does.
The following system flags are used when opening the file:
- O_CREAT
(Posix)
- CREATE_ALWAYS
or OPEN_ALWAYS
depending on other flags (Windows)
Delete = 3
Opens the file for deleting or renaming (Windows).
Adds DELETE
flag when opening the file to ACCESS_MASK
.
Truncate = 4
Truncates the file.
The following system flags are used when opening the file:
- O_TRUNC
(Posix)
- TRUNCATE_EXISTING
(Windows)
ReadExclusive = 28
Opens the file for reading in exclusive mode (Windows).
Exclusive mode means to not specify the FILE_SHARE_READ
option.
WriteExclusive = 29
Opens the file for writing in exclusive mode (Windows).
Exclusive mode means to not specify the FILE_SHARE_WRITE
option.
CreateExclusive = 30
Creates the file in exclusive mode - fails if the file already exists.
The following system flags are used when opening the file:
- O_EXCL
(Posix)
- CREATE_NEW
(Windows)
DeleteExclusive = 31
Opens the file for deleting or renaming in exclusive mode (Windows).
Exclusive mode means to not specify the FILE_SHARE_DELETE
option.