2.2.1.3.1 EncodedDataHeader Structure

The EncodedDataHeader structure is defined as follows:

 typedef struct {
   BYTE CRC;
   DWORD Key;
   DWORD Length;
 } EncodedDataHeader;

CRC: This field MUST be set to the result that is obtained by performing an exclusive OR (XOR) computation on each byte in the 32-bit Key field, the 32-bit Length field, and the binary data to be encoded.

Key: If the binary data is an ASF header, the Key field MUST be set to the Format ID that is associated with this ASF header. The Format ID is an 11-bit number; the high order 21 bits in the Key field MUST be set to 0. If the binary data is not an ASF header, the Key MUST be 0.

Length: This field MUST be set to the size, in bytes, of the binary data. If the binary data is a Unicode string, the null character that terminates the string MUST be included in the count. The Length value does not include the size of the EncodedDataHeader.