SwapBytes Property

Object List

Defined By:
BinaryFile

Description:

Determines whether to swap the byte-order of numbers read with ReadInteger, ReadLong, ReadSingle, and ReadDouble methods and their array counterparts.

Settings:


Setting Description


False(0) (Default) Bytes will not be swapped.

True(-1) Bytes will be swapped.

Details:

Byte swapping is a process that is useful when the format of the numbers in the files is not the same as their representation in memory. This situation usually arises when a binary data file is created on a computer with a
big-endian architecture, but is being read on a little-endian system, or vice-versa. For example, if on-disk an integer is stored with most-significant byte first (big-endian), ByteSwap can be set to True to automatically reverse the bytes when read in to accomodate a least-significant byte first (little-endian) architecture.

Data Type: Boolean