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

Function stringToUint8Array

packages/core/fumadb/src/utils/binary.ts:17–20  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

15}
16
17export function stringToUint8Array(str: string) {
18 const encoder = new TextEncoder();
19 return encoder.encode(str);
20}
21
22export function uint8ArrayToString(arr: Uint8Array) {
23 const decoder = new TextDecoder();

Callers 1

migrateDataTypeFunction · 0.90

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected