05.07.2014 Views

here - OSTA - Optical Storage Technology Association

here - OSTA - Optical Storage Technology Association

here - OSTA - Optical Storage Technology Association

SHOW MORE
SHOW LESS

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 or Application Use Extended Attribute<br />

* header. The fields AttributeType through ImplementationIdentifier<br />

* (or ApplicationIdentifier) 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 />

UDF 2.01<br />

135<br />

March50 April

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!