AutoMovie API
    Preparing search index...

    One workspace owner with at most one active borrow. Each borrow allocates fresh zeroed storage, without factors or values from prior solves.

    type IResult = {
        withWorkspace<T>(
            bytes: number,
            use: (heap: IAutoMovieQuadraticHeap, address: number) => T,
        ): T;
    }
    Index
    • Invoke use once with a fresh heap and byte address zero, returning its value unchanged. Invalid byte counts and nested borrows throw before invocation; allocation and callback exceptions propagate. Finally releases the owner's buffer reference on return or throw. The borrow ends when use returns, even if T is a Promise. Copy values that must outlive the callback; retained typed views keep their ordinary JS buffer alive.

      Type Parameters

      • T

      Parameters

      • bytes: number

        Requested bytes before upward eight-byte alignment.

      • use: (heap: IAutoMovieQuadraticHeap, address: number) => T

        Synchronous callback borrowing heap getters and views during this invocation.

      Returns T