encode_NUMBER16 function
dynamic
encode_NUMBER16(
- dynamic v
Convert a signed number between -32768 and +32767 to a three-byte value. This ensures we always use three bytes, but is not the most compact format. @param {number} @returns {Array}
Implementation
encode_NUMBER16(v) {
return [28, (v >> 8) & 0xFF, v & 0xFF];
}