MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / encode

Method encode

lib.commonjs/abi/coders/bytes.js:16–21  ·  view source on GitHub ↗
(writer, value)

Source from the content-addressed store, hash-verified

14 return "0x";
15 }
16 encode(writer, value) {
17 value = (0, index_js_1.getBytesCopy)(value);
18 let length = writer.writeValue(value.length);
19 length += writer.writeBytes(value);
20 return length;
21 }
22 decode(reader) {
23 return reader.readBytes(reader.readIndex(), true);
24 }

Callers

nothing calls this directly

Calls 2

writeValueMethod · 0.45
writeBytesMethod · 0.45

Tested by

no test coverage detected