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

Function decodeString

packages/utils/src/data.ts:51–53  ·  view source on GitHub ↗
(encodedString: Uint8Array)

Source from the content-addressed store, hash-verified

49}
50
51export function decodeString(encodedString: Uint8Array): string {
52 return binToUtf8(encodedString);
53}
54
55export function placeholder(size: number): Uint8Array {
56 return new Uint8Array(size).fill(0);

Callers 2

decodeStackItemFunction · 0.90
data.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected