* Extracts a 16-bit unsigned integer from byte array (big-endian). * SiRF protocol uses big-endian byte order.
(bytes, offset)
| 112 | * SiRF protocol uses big-endian byte order. |
| 113 | */ |
| 114 | function 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). |