Decode a byte array from the extended header field of a HF2/HFZ file into the array of hfzExtHeaderBlock structs in a hfzHeader struct (see pExtHeaderBlocks member).
long hfzHeader_DecodeExtHeaderBuf(hfzHeader &fh, char* pBuf);
Name | Type | Comment |
---|---|---|
fh | hfzHeader& | The hfzHeader struct corresponding to the extended header buffer, the pExtHeaderBlocks array of which will be initialised and filled with the extended header blocks. |
pBuf | char* | The raw byte array of the extended header from the HF2/HFZ file. |
The number of blocks decoded (if 0 or greater), or otherwise an error code. Use hfzGetErrorStr to retrieve the error description.