Class: Cabriolet::Binary::OABStructures::PatchHeader
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- Cabriolet::Binary::OABStructures::PatchHeader
- Defined in:
- lib/cabriolet/binary/oab_structures.rb
Overview
OAB header for patch files (version 3.2)
Structure (28 bytes):
-
4 bytes: version_hi (should be 3)
-
4 bytes: version_lo (should be 2 for patches)
-
4 bytes: block_max (maximum block size)
-
4 bytes: source_size (base file size)
-
4 bytes: target_size (output file size)
-
4 bytes: source_crc (CRC32 of base file)
-
4 bytes: target_crc (CRC32 of output file)
Instance Method Summary collapse
-
#valid? ⇒ Boolean
Check if header is valid.
Instance Method Details
#valid? ⇒ Boolean
Check if header is valid
90 91 92 |
# File 'lib/cabriolet/binary/oab_structures.rb', line 90 def valid? version_hi == 3 && version_lo == 2 end |