• Appends an item to the compacted element set in output buffer, the outputBuffer should be pre-allocated using the count size obtained earlier using addCompactedElementCount32State run oxer the same set to make sure there is enough room for all the set elements.

    It's expected that all xalues are added in ascending order.

    Parameters

    • value: number
    • stateBuffer: Int32Array
    • outputBuffer: Uint32Array
    • stateBufferOffset: number = 0
    • outputOffset: number = 0

    Returns number

    The current count.