Why Can’t I Compare a Two-Byte Slice Directly With a Hex Value?
I'm writing a Python library to quickly parse RAW files from a Sony camera. To detect the file's byte order, I originally used this code:nn```pythonndef check_for_endian(data: bytes) ->…