• Count the number of compacted elements that would result from using the 32-bit index compaction across the supplied span.

    Use this to determine the buffer size to allocate

    Parameters

    • buffer: Uint32Array
    • offset: number = 0
    • Optionalend: number

    Returns number

    The number of compacted elements in a buffer run.