Swap byte order of the byte array in place, interpreting the buffer as an array of 16-bit integers
`swap16(new Uint8Array([0x12, 0x34, 0x56, 0x78])) // becomes [0x34, 0x12, 0x78, 0x56] Copy
`swap16(new Uint8Array([0x12, 0x34, 0x56, 0x78])) // becomes [0x34, 0x12, 0x78, 0x56]
RangeError when the buffer length is not a multiple of 2
Swap byte order of the byte array in place, interpreting the buffer as an array of 16-bit integers