• decode as a sequential array of items. this is the inverse of packSeq

    Example

    unpackSeq(Uint8Array.of(0x00, 0x12, 0xAB, 0x98, 104, 101, 108, 108, 111, 0), 0, ["u4b"], ["str", 5], ["bool"]) === [[0x12AB98, "hello", false], 10]
    

    Parameters

    • buf: Uint8Array
    • offset: number
    • Rest ...items: [type: PrimitiveType, ...args: any[]][]

    Returns Decoded<JSPrimitive[], number>

Generated using TypeDoc