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

Function extractUint16BE

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

* Extracts a 16-bit unsigned integer from byte array (big-endian). * SiRF protocol uses big-endian byte order.

(bytes, offset)

Source from the content-addressed store, hash-verified

112 * SiRF protocol uses big-endian byte order.
113 */
114function extractUint16BE(bytes, offset) {
115 return (bytes[offset] << 8) | bytes[offset + 1];
116}
117
118/**
119 * Extracts a 16-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