How do I swap endian-ness (byte order) of a variable in javascript
问题 I am receiving and sending a decimal representation of two little endian numbers. I would like to: shift one variable 8 bits left OR them shift a variable number of bits create 2 8 bit numbers representing the first and second half of the 16 bit number. javascript (according to https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators) uses big endian representation when shifting... endianness is a bit foreign to me (I am only 90 percent sure that my outlined steps are