Libraries
Crc32 Source Code
 previous   up   next 

Function Summary
bin32
crc32 (in string: stri)
Compute the CRC-32 cyclic redundancy check code.
bin32
crc32 (in string: stri, in bin32: interimCrc)
Compute the CRC-32 cyclic redundancy check code with interimCrc.
bin32
bzip2Crc32 (in string: stri)
Compute the CRC-32 cyclic redundancy check code of BZIP2.
bin32
bzip2Crc32 (in string: stri, in bin32: interimCrc)
Compute the CRC-32 cyclic redundancy check code of BZIP2 with interimCrc.

Function Detail

crc32

const func bin32: crc32 (in string: stri)

Compute the CRC-32 cyclic redundancy check code.

crc32("123456789")  returns bin32(16#cbf43926)

crc32

const func bin32: crc32 (in string: stri, in bin32: interimCrc)

Compute the CRC-32 cyclic redundancy check code with interimCrc. This function can be used to compute the CRC-32 with multiple steps:

interimCrc := crc32(data1);
interimCrc := crc32(data2, interimCrc);
finalCrc   := crc32(data3, interimCrc);

bzip2Crc32

const func bin32: bzip2Crc32 (in string: stri)

Compute the CRC-32 cyclic redundancy check code of BZIP2.

bzip2Crc32("123456789")  returns bin32(16#fc891918)

bzip2Crc32

const func bin32: bzip2Crc32 (in string: stri, in bin32: interimCrc)

Compute the CRC-32 cyclic redundancy check code of BZIP2 with interimCrc. This function can be used to compute the CRC-32 with multiple steps:

interimCrc := bzip2Crc32(data1);
interimCrc := bzip2Crc32(data2, interimCrc);
finalCrc   := bzip2Crc32(data3, interimCrc);


 previous   up   next