WriteOptions

Defined in header “ark/core/filesystem.hh”.


Represents available options when writing strings out to files. This is a bitmask, you can specify multiple options.

Values

  • None = 0x00
    No write options.

  • Synchronize = 0x01
    Synchronizes the disk (via fsync()) before closing the file.

  • Atomic = 0x02
    Makes a best-effort to be atomic, at the expense of writing an additional ‘backup’ file to disk (thus using 2x the disk space temporarily).

  • Private = 0x04
    Makes the file private (readable/writable only to this user)