MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / concat

Function concat

packages/plugins/apps/src/plugin/apps-plugin.test.ts:64–72  ·  view source on GitHub ↗
(parts: readonly Uint8Array[])

Source from the content-addressed store, hash-verified

62}))();
63
64const concat = (parts: readonly Uint8Array[]): Uint8Array => {
65 const out = new Uint8Array(parts.reduce((sum, part) => sum + part.length, 0));
66 let offset = 0;
67 for (const part of parts) {
68 out.set(part, offset);
69 offset += part.length;
70 }
71 return out;
72};
73
74const advertisement = (sha: string): Uint8Array =>
75 concat([

Callers 2

advertisementFunction · 0.70
sideBandFunction · 0.70

Calls 1

setMethod · 0.80

Tested by

no test coverage detected