Skip to content

chunkBytes

chunkBytes(bytes, size): Uint8Array<ArrayBufferLike>[]

Defined in: packages/core/src/buffer/chunk-bytes.ts:6

Splits bytes into consecutive views of at most size bytes each — the inverse of concatBytes. Each returned array is a subarray (no copy), so mutating one mutates bytes itself.

Uint8Array

number

Uint8Array<ArrayBufferLike>[]