Encode an integer as a 2-byte Int16LE Uint8Array.
This method will return an incorrect result for values outside of the range 0x0000 to 0xffff (65535). If applicable, applications should handle such cases prior to calling this method.
0x0000
0xffff
65535
For the reverse, see binToNumberInt16LE.
the number to encode
Generated using TypeDoc
Encode an integer as a 2-byte Int16LE Uint8Array.
This method will return an incorrect result for values outside of the range
0x0000
to0xffff
(65535
). If applicable, applications should handle such cases prior to calling this method.For the reverse, see binToNumberInt16LE.