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

Method encode

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

Source from the content-addressed store, hash-verified

14 return null;
15 }
16 encode(writer, value) {
17 if (value != null) {
18 this._throwError("not null", value);
19 }
20 return writer.writeBytes(Empty);
21 }
22 decode(reader) {
23 reader.readBytes(0);
24 return null;

Callers

nothing calls this directly

Calls 2

_throwErrorMethod · 0.45
writeBytesMethod · 0.45

Tested by

no test coverage detected