MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / extractUint32BE

Function extractUint32BE

app/rcc/scripts/parser/js/sirf_binary.js:129–132  ·  view source on GitHub ↗

* Extracts a 32-bit unsigned integer from byte array (big-endian).

(bytes, offset)

Source from the content-addressed store, hash-verified

127 * Extracts a 32-bit unsigned integer from byte array (big-endian).
128 */
129function extractUint32BE(bytes, offset) {
130 return (bytes[offset] << 24) | (bytes[offset + 1] << 16) |
131 (bytes[offset + 2] << 8) | bytes[offset + 3];
132}
133
134/**
135 * Extracts a 32-bit signed integer from byte array (big-endian).

Callers 1

sirf_binary.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected