Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Pure-function-friendly reference to a pooled buffer. The pool itself collects Ref structs that include splice metadata; the public ref is the byte-cost + opaque payload that the eviction selector needs — see selectBuffersToEvict in ./eviction-policy.

    interface PooledBufferRef<T = unknown> {
        bytes: number;
        payload?: T;
    }

    Type Parameters

    • T = unknown
    Index
    bytes: number
    payload?: T

    Caller-provided opaque payload used to splice the buffer out of its containing pool after the selection returns.