Byte Swapping

Byte Swapping

It often happens that the memory that you want to view with an array is not of the same byte ordering as the computer on which you are running Python. It may be little-endian (least significant is stored in the smallest address) or big-endian (most significant byte in the smallest address). So, to switch between these two representations we will use a byte swapping concept. ThisĀ Numpy.ndarray.byteswap() function is used for toggling.
Close Menu