UDF 2.00 - OSTA - Optical Storage Technology Association
UDF 2.00 - OSTA - Optical Storage Technology Association
UDF 2.00 - OSTA - Optical Storage Technology Association
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
6.8 Extended Attribute Checksum Algorithm<br />
/*<br />
* Calculates a 16-bit checksum of the Implementation Use<br />
* Extended Attribute header. The fields AttributeType<br />
* through ImplementationIdentifier inclusively represent the<br />
* data covered by the checksum (48 bytes).<br />
*<br />
*/<br />
Uint16 ComputeEAChecksum(byte *data)<br />
{<br />
Uint16 checksum = 0;<br />
Uint<br />
count;<br />
for( count = 0; count < 48; count++)<br />
{<br />
checksum += *data++;<br />
}<br />
}<br />
return(checksum );<br />
<strong>UDF</strong> <strong>2.00</strong> April 3, 1998<br />
108