MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / concatUint8Arrays

Function concatUint8Arrays

packages/@stdlib/misc/src/bytes.ts:15–33  ·  view source on GitHub ↗
(...arrays: Uint8Array[])

Source from the content-addressed store, hash-verified

13}
14
15export function concatUint8Arrays(...arrays: Uint8Array[]) {
16 let totalLength = 0;
17
18 for (const arr of arrays) {
19 totalLength += arr.length;
20 }
21
22 const result = new Uint8Array(totalLength);
23
24 let offset = 0;
25
26 for (const arr of arrays) {
27 result.set(arr, offset);
28
29 offset += arr.length;
30 }
31
32 return result;
33}

Callers 3

encryptMethod · 0.90
encryptMethod · 0.90
hashRecoveryCodeFunction · 0.90

Calls 1

setMethod · 0.65

Tested by

no test coverage detected