encode_USHORT function
dynamic
encode_USHORT(
- dynamic v
Convert a 16-bit unsigned integer to a list of 2 bytes. @param {number} @returns {Array}
Implementation
encode_USHORT(v) {
return [(v >> 8) & 0xFF, v & 0xFF];
}