MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / writeBytes

Method writeBytes

modules/network/dns/dnsserializer.js:166–171  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

164 state.position += 4;
165 }
166 writeBytes(bytes) {
167 const state = this.state;
168 if (state.result)
169 state.result.set(bytes, state.position);
170 state.position += bytes.byteLength;
171 }
172 writeName(parts) {
173 const state = this.state;
174 for (let i = 0; i < parts.length; i++) {

Callers 2

writeNameMethod · 0.95
writeRDataMethod · 0.95

Calls 1

setMethod · 0.65

Tested by

no test coverage detected