byteReverse

byteReverse

> Functions

Returns the number obtained by reversing the order of the 8 bytes of the 64-bit integer x: the least significant byte becomes the most significant byte, and so on. The bits inside each byte do not move. The original number is not modified.

This is the byte-order (endianness) swap. The reversal always covers all 8 bytes, including the leading zero bytes: byteReverse(1) returns 72057594037927936, that is, 1 followed by 56 zeros in binary.

Parameters
Return
Note