# HeapObject

`import { HeapObject } from "destack:runtime";`

Runtime heap object.

```ds title="HeapObject"
export struct HeapObject {
    id: HeapObjectId;
    sizeBytes: uint64;
    resource: ResourceId;
}
```

[language/library/src/runtime/heap.ds:21:28](https://github.com/destack-sh/destack/blob/main/language/library/src/runtime/heap.ds#L21-L28)

## Members

### `id: HeapObjectId`

Object identifier.

### `sizeBytes: uint64`

Object byte size.

### `resource: ResourceId`

Resource represented by this object when present.
