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 this two representation we will use a byte swapping concept. ThisĀ Numpy.ndarray.byteswap() function is used for toggling.

Leave a Comment

Your email address will not be published. Required fields are marked *