Packagenochump.util.zip
Classpublic class CRC32

Computes CRC32 data checksum of a data stream. The actual CRC32 algorithm is described in RFC 1952 (GZIP file format specification version 4.3).



Public Methods
 MethodDefined by
  
getValue():uint
Returns the CRC32 data checksum computed so far.
CRC32
  
reset():void
Resets the CRC32 data checksum as if no update was ever called.
CRC32
  
update(buf:ByteArray):void
Adds the complete byte array to the data checksum.
CRC32
Method detail
getValue()method
public function getValue():uint

Returns the CRC32 data checksum computed so far.

Returns
uint
reset()method 
public function reset():void

Resets the CRC32 data checksum as if no update was ever called.

update()method 
public function update(buf:ByteArray):void

Adds the complete byte array to the data checksum.

Parameters
buf:ByteArray — the buffer which contains the data