If you need to find out the host byte order you can use the function CFByteOrderGetCurrent . The possible return values are CFByteOrderUnknown , CFByteOrderLittleEndian , and CFByteOrderBigEndian .
CFByteOrderGetCurrent
CFByteOrderUnknown
CFByteOrderLittleEndian
CFByteOrderBigEndian