Core/Enums: Improve OpenMode comments

This commit is contained in:
SirLynix 2023-06-02 17:49:23 +02:00
parent 1672765936
commit 401bfa3324
1 changed files with 10 additions and 10 deletions

View File

@ -94,17 +94,17 @@ namespace Nz
enum class OpenMode enum class OpenMode
{ {
NotOpen, // Use the current mod of opening NotOpen, //< File is not open
Append, // Disable writing on existing parts and put the cursor at the end Append, //< Disables writing to existing content, all write operations are performed at the end
Defer, // Defer file opening until a read/write operation is performed on it Defer, //< Defers file opening until a read/write operation is performed on it
Lock, // Disable modifying the file before it is open Lock, //< Prevents file modification by other handles while it's open
MustExist, // Fail if the file doesn't exists, even if opened in write mode MustExist, //< Fails if the file doesn't exists, even if opened in write mode
ReadOnly, // Open in read only ReadOnly, //< Allows read operations
Text, // Open in text mod Text, //< Opens in text mode (converts system line endings from/to \n)
Truncate, // Create the file if it doesn't exist and empty it if it exists Truncate, //< Creates the file if it doesn't exist and empties it otherwise
Unbuffered, // Each read/write operation is equivalent to a read or write system call (slow) Unbuffered, //< Each read/write operations are performed directly using system calls (very slow)
WriteOnly, // Open in write only, create the file if it doesn't exist WriteOnly, //< Allows write operations, creates the file if it doesn't exist
Max = WriteOnly Max = WriteOnly
}; };