signature property
The file signature/magic bytes for this format.
Implementation
List<int> get signature {
switch (this) {
case PatchFormat.ips:
return [0x50, 0x41, 0x54, 0x43, 0x48]; // "PATCH"
case PatchFormat.bps:
return [0x42, 0x50, 0x53, 0x31]; // "BPS1"
case PatchFormat.ups:
return [0x55, 0x50, 0x53, 0x31]; // "UPS1"
}
}