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

Function extractUint32LE

app/rcc/scripts/parser/js/nmea_2000.js:141–144  ·  view source on GitHub ↗

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

(bytes, offset)

Source from the content-addressed store, hash-verified

139 * Extracts a 32-bit unsigned integer from byte array (little-endian).
140 */
141function extractUint32LE(bytes, offset) {
142 return bytes[offset] | (bytes[offset + 1] << 8) |
143 (bytes[offset + 2] << 16) | (bytes[offset + 3] << 24);
144}
145
146/**
147 * Extracts a 32-bit signed integer from byte array (little-endian).

Callers 1

nmea_2000.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected