concatBytes
Call Signature
Section titled “Call Signature”concatBytes(
arrays):Uint8Array<ArrayBuffer>
Defined in: packages/core/src/buffer/concat-bytes.ts:12
Concatenates any number of Uint8Arrays into one, copying each source once —
linear in the total byte length. Accepts an array directly to avoid forcing a
spread at large call counts; the variadic overload is for the common small,
fixed-arity call site.
The result is always backed by a plain ArrayBuffer, never a shared one, so
it satisfies BufferSource and can be handed straight to a Web API.
Parameters
Section titled “Parameters”arrays
Section titled “arrays”readonly Uint8Array<ArrayBufferLike>[]
Returns
Section titled “Returns”Uint8Array<ArrayBuffer>
Call Signature
Section titled “Call Signature”concatBytes(…
arrays):Uint8Array<ArrayBuffer>
Defined in: packages/core/src/buffer/concat-bytes.ts:15
Concatenates any number of Uint8Arrays into one, copying each source once —
linear in the total byte length. Accepts an array directly to avoid forcing a
spread at large call counts; the variadic overload is for the common small,
fixed-arity call site.
The result is always backed by a plain ArrayBuffer, never a shared one, so
it satisfies BufferSource and can be handed straight to a Web API.
Parameters
Section titled “Parameters”arrays
Section titled “arrays”…Uint8Array<ArrayBufferLike>[]
Returns
Section titled “Returns”Uint8Array<ArrayBuffer>