This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import struct | |
def wu08(value): | |
return struct.pack("<B", value) | |
def int32_read(buf, offset): | |
return struct.unpack("<i", buf[offset:offset+4])[0] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import struct | |
import argparse | |
import subprocess | |
from pathlib import Path | |
def ru08(buf, offset): | |
return struct.unpack("<B", buf[offset:offset+1])[0] |