Skip to content

Instantly share code, notes, and snippets.

@BenChampion
BenChampion / HOB_parser.py
Last active August 14, 2020 11:10
Incomplete parser for R3D HOB file
from construct import \
Int8ul, Int16ul, Int16ub, Int16sl, Int32ul, \
Float32l, \
Struct, AlignedStruct, Array, Aligned, Sequence, \
RepeatUntil, GreedyRange, \
this, len_, obj_,\
Byte, Bytes, Const, \
Bitwise, BitStruct, Flag, BitsInteger, \
If, IfThenElse, Select,\
Tell, Computed, Check, \