MCPcopy Create free account
hub / github.com/CashScript/cashscript / encodeString

Function encodeString

packages/utils/src/data.ts:47–49  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

45}
46
47export function encodeString(str: string): Uint8Array {
48 return utf8ToBin(str);
49}
50
51export function decodeString(encodedString: Uint8Array): string {
52 return binToUtf8(encodedString);

Callers 3

encodeFunctionArgumentFunction · 0.90
visitStringLiteralMethod · 0.90
data.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected