# MemoryAdvice

`import { MemoryAdvice } from "destack:memory/binding";`

Memory access pattern advice selector.

```ds title="MemoryAdvice"
export enum MemoryAdvice {
    Normal = 0,
    Sequential = 1,
    Random = 2,
    WillNeed = 3,
    DontNeed = 4,
}
```

[language/library/src/memory/binding/advise.ds:6:17](https://github.com/destack-sh/destack/blob/main/language/library/src/memory/binding/advise.ds#L6-L17)

## Variants

### `Normal = 0`

No special access pattern.

### `Sequential = 1`

Expect mostly sequential access.

### `Random = 2`

Expect mostly random access.

### `WillNeed = 3`

Pages will be needed soon.

### `DontNeed = 4`

Pages will not be needed soon.
