• Concatenates multiple byte-like arrays into a single byte array.

    Parameters

    • Rest...args: BytesLike[]

      The byte-like arrays to concatenate.

    Returns ccc.Bytes

    A Uint8Array containing the concatenated bytes.

    const concatenatedBytes = bytesConcat(
    new Uint8Array([1, 2]),
    new Uint8Array([3, 4]),
    "hello",
    [5, 6, 7]
    );
    console.log(concatenatedBytes); // Outputs Uint8Array [1, 2, 3, 4, /* bytes of "hello" */, 5, 6, 7]