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

Function uint8ArrayToString

packages/core/fumadb/src/utils/binary.ts:22–25  ·  view source on GitHub ↗
(arr: Uint8Array)

Source from the content-addressed store, hash-verified

20}
21
22export function uint8ArrayToString(arr: Uint8Array) {
23 const decoder = new TextDecoder();
24 return decoder.decode(arr);
25}
26
27export function booleanToUint8Array(bool: boolean) {
28 return new Uint8Array([bool ? 1 : 0]);

Callers 1

migrateDataTypeFunction · 0.90

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected