2.10.1 PATCH_HDR

 The PATCH_HDR structure contains versioning information to indicate that it is an OAB version 4 patch file. It contains source and target file hash and file size values.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ulVersionHi

ulVersionLo

ulBlockMax

ulSourceSize

ulTargetSize

ulSourceCRC

ulTargetCRC

ulVersionHi (4 bytes):  The high part of the file version information. This field MUST be set to 0x00000003.

ulVersionLo (4 bytes):  The low part of the file version information. This field MUST be set to 0x00000002.

ulBlockMax (4 bytes):  A 32-bit unsigned integer value that specifies in bytes the largest size of a block that will be read from the source OAB Details input file, written to the target OAB details output file, or read from the Differential Patch file. This field is here so that the client can pre-allocate required buffers.

ulSourceSize (4 bytes):  A 32-bit unsigned integer value that specifies the length in bytes that the source input file is expected to be.

ulTargetSize (4 bytes):  A 32-bit unsigned integer value that specifies the length that the resulting output target file is expected to be.

ulSourceCRC (4 bytes):  A 32-bit unsigned integer value that represents the CRC hash of the source input file (excluding the OAB_HDR structure).

ulTargetCRC (4 bytes):  A 32-bit unsigned integer value that represents the CRC hash of the target output file (excluding the OAB_HDR structure).