Handle representing an allocated portion in the PortionDataTexture.

Carries the portion's size and optional onMove callback directly, so the hot allocation path needs no separate per-id side maps — callers already hold the handle and pass it back for every operation.

interface PortionHandle {
    base: number;
    id: number;
    onMove?: (newBase: number) => void;
    size: number;
}

Properties

Properties

base: number
id: number
onMove?: (newBase: number) => void
size: number