MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / concat

Function concat

src.ts/utils/data.ts:116–118  ·  view source on GitHub ↗
(datas: ReadonlyArray<BytesLike>)

Source from the content-addressed store, hash-verified

114 * within %%data%%.
115 */
116export function concat(datas: ReadonlyArray<BytesLike>): string {
117 return "0x" + datas.map((d) => hexlify(d).substring(2)).join("");
118}
119
120/**
121 * Returns the length of %%data%%, in bytes.

Callers

nothing calls this directly

Calls 3

hexlifyFunction · 0.70
joinMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected