MCPcopy Create free account
hub / github.com/ccxt/ccxt / encode

Method encode

js/src/static_dependencies/ethers/coders/bytes.js:13–18  ·  view source on GitHub ↗
(writer, value)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getBytesCopyFunction · 0.90
writeValueMethod · 0.45
writeBytesMethod · 0.45

Tested by

no test coverage detected