Advice

WASI Preview1 type $advice

File or memory access pattern advisory information.

TAG: u8

Definition:

(typename $advice
(enum (@witx tag u8)
;;; The application has no advice to give on its behavior with respect to the specified data.
$normal
;;; The application expects to access the specified data sequentially from lower offsets to higher offsets.
$sequential
;;; The application expects to access the specified data in a random order.
$random
;;; The application expects to access the specified data in the near future.
$willneed
;;; The application expects that it will not access the specified data in the near future.
$dontneed
;;; The application expects to access the specified data once and then not reuse it thereafter.
$noreuse
)
)

Entries

Link copied to clipboard

The application has no advice to give on its behavior with respect to the specified data.

Link copied to clipboard

The application expects to access the specified data sequentially from lower offsets to higher offsets.

Link copied to clipboard

The application expects to access the specified data in a random order.

Link copied to clipboard

The application expects to access the specified data in the near future.

Link copied to clipboard

The application expects that it will not access the specified data in the near future.

Link copied to clipboard

The application expects to access the specified data once and then not reuse it thereafter.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val code: Int

Functions

Link copied to clipboard
fun valueOf(value: String): Advice

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.