The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



CalcNextCRC32


Unit:SDL_dstruct
Class:none
Declaration:function CalcNextCRC32 (inbyte: byte; crc: longint): longint;

The function CalcNextCRC32 calculates the CRC-32 stream according to the following polynomial: X32 + X26 + X23 + X22 + X16 + X12 + X11 + X10 + X8 + X7 + X5 + X4 + X2 + X + 1. The parameter inbyte contains the next byte to be encoded, the parameter crc holds the current CRC word. Please note that the CRC is calculated by a table-driven algorithm, which guarantees maximum speed (sacrificing speed to code size).



Last Update: 2023-Feb-06