Skip to content

u8vector crc16 ccitt

Chris Petersen edited this page Oct 16, 2014 · 1 revision

u8vector-crc16-ccitt returns a CCITT 16bit cyclic redundancy check sum.

Parameter Description
v u8vector

Example

Example 1: Run CCITT 16 bit checksum on a u8vector

> (define vec (string->u8vector "123456789"))
> (u8vector-crc16-ccitt vec)
10673
> (number->string (u8vector-crc16-ccitt vec) 16)
"29b1"
Clone this wiki locally