ReadAdvice

Advice regarding the read access pattern.

Entries

Link copied to clipboard

Normal behavior. Data is expected to be read mostly sequentially. The system is expected to cache the hottest pages.

Link copied to clipboard

Data is expected to be read in a random-access fashion, either by seeking often and reading relatively short sequences of bytes at once, or by reading data through the RandomAccessInput abstraction in random order.

Link copied to clipboard

Data is expected to be read sequentially with very little seeking at most. The system may read ahead aggressively and free pages soon after they are accessed.

Link copied to clipboard

Data is treated as random-access memory in practice. Directory implementations may explicitly load the content of the file in memory, or provide hints to the system so that it loads the content of the file into the page cache at open time. This should only be used on very small files that can be expected to fit in RAM with very high confidence.

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.