StorageMode

How files are laid out on disk. This is the port of libtorrent's storage_mode_t (storage_defs.hpp).

Entries

Link copied to clipboard

Pre-allocate every file to its full size up front (minimizes fragmentation).

Link copied to clipboard

Write pieces where they belong and rely on sparse files (the recommended default).

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.