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

Method writeU16

modules/network/dns/dnsserializer.js:148–155  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

146 state.position += 1;
147 }
148 writeU16(value) {
149 const state = this.state;
150 if (state.result) {
151 state.result[state.position] = value >> 8;
152 state.result[state.position + 1] = value;
153 }
154 state.position += 2;
155 }
156 writeU32(value) {
157 const state = this.state;
158 if (state.result) {

Callers 3

writeNameMethod · 0.95
writeRDataMethod · 0.95
writeRecordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected