"Sputnik" help  
Sputnik Help
BinaryCrc16(<binary>)

Description

Calculates the cyclic redundancy check (CRC-16) value for a binary string.

Parameters

<binary> The binary string for which the CRC-16 value is to be calculated.

Return Value

Success: Returns integer representing the CRC-16 value of the binary string.
Failure: Returns 0.

Remarks

The CRC-16 algorithm is used to detect errors in data transmission by generating a checksum value.
The function calculates the CRC-16 value using the binary string as input.
The resulting CRC-16 value can be used for error detection and verification purposes.

Related

BinaryCrc32, BinaryCrc64

Example

Generate checksum:

my $binary = (binary)"Hello World";
say BinaryCrc16($binary);
// PRINTS
// 16107

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org