import struct with open("texture_memory_write_64_read_32.bin", "rb") as f: buf = memoryview(f.read()) lookup = [ struct.unpack("