// Calculates the CRC of a string
CRC is int
CRC = sComputeCrc32(MyString)
// Transmits the string and the CRC
// Check the integrity of string
IF sComputeCrc32(MyString) <> CRC THEN Info("Modified string")
Syntax
<Result> = sComputeCrc32(<Buffer> [, <Partial CRC>])
<Result>: Integer
Control value of string (CRC)
<Buffer>: Buffer or character string (with quotes)
String or buffer used to calculate the control value (CRC)
<Partial CRC>: Optional integer
Result of a previous CRC calculation. This parameter is used to calculate the CRC of two buffers in a row: there is no need to concatenate the buffers. This parameter corresponds to 0 (a single buffer is managed) by default.
Remarks
sComputeCrc32 is identical to
sComputeCrc16 but this function is faster and more efficient.
Business / GUI classification : Neutral code