# AllocationOutOfMemory

`import { AllocationOutOfMemory } from "destack:memory";`

Allocation failed because the runtime could not reserve enough memory.

```ds title="AllocationOutOfMemory"
export struct AllocationOutOfMemory {
    kind: "outOfMemory";
    requestedBytes: usize;
    message: string;
}
```

[language/library/src/memory/error.ds:6:15](https://github.com/destack-sh/destack/blob/main/language/library/src/memory/error.ds#L6-L15)

## Members

### `kind: "outOfMemory"`

Discriminant for allocation failure matching.

### `requestedBytes: usize`

Requested allocation size in bytes when known.

### `message: string`

Human-readable diagnostic detail.
