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

Method readU32

tools/compressbmf.js:263–267  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

261 }
262
263 readU32(bytes) {
264 let value = bytes[bytes.position] | (bytes[bytes.position + 1] << 8) | (bytes[bytes.position + 2] << 16) | (bytes[bytes.position + 3] << 24);
265 bytes.position += 4;
266 return value;
267 }
268 readS16(bytes) {
269 let value = (bytes[bytes.position]) | (bytes[bytes.position + 1] << 8);
270 if (value > 32767) value -= 65536;

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected