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

Function extractUint16LE

app/rcc/scripts/parser/js/mavlink.js:124–126  ·  view source on GitHub ↗

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

(bytes, offset)

Source from the content-addressed store, hash-verified

122 * Extracts a 16-bit unsigned integer from byte array (little-endian).
123 */
124function extractUint16LE(bytes, offset) {
125 return bytes[offset] | (bytes[offset + 1] << 8);
126}
127
128/**
129 * Extracts a 32-bit signed integer from byte array (little-endian).

Callers 1

mavlink.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected