MCPcopy Create free account
hub / github.com/pingdotgg/t3code / bytesToString

Function bytesToString

apps/server/src/cloud/environmentKeys.ts:22–24  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

20const encodeEnvironmentKeyPair = Schema.encodeEffect(EnvironmentKeyPairJson);
21
22function bytesToString(bytes: Uint8Array): string {
23 return new TextDecoder().decode(bytes);
24}
25
26function stringToBytes(value: string): Uint8Array {
27 return new TextEncoder().encode(value);

Callers 1

environmentKeys.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected