Goto main content

crc32

Calculates the crc32 polynomial of a string.

CRC32

NAME

crc32 - Calculates the crc32 polynomial of a string.

SYNOPSIS

crc32(str,asint)

PARAMETERS

str
The data. Returned as string.

RETURN 

String
Returns the crc32 checksum of str as an string. It is used to detect errors in data transmission. Datas entering the cycle get a "check value" that is recalculated at the end, enabling the user to spot any differences in their content. 
 
 
DEFINITION
 
CRC stands for cyclic redundancy check. 
 

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

in:  res={_{crc32("The quick brown fox jumped over the lazy dog.")}}.
out: res=82a34642.

in:  res={_{crc32("The quick brown fox jumped over the lazy dog.",true)}}.
out: res=-2103228862.

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.