crc32
Constants
- crc_table :
Uint32Array
Functions
- update_crc(crc, buf, offset, len) ⇒
number
Update a running CRC with the bytes buf[0..len-1]--the CRC should be initialized to all 1's, and the transmitted value is the 1's complement of the final running CRC (see the crc32() routine below)).
- crc32(buffer, offset, length) ⇒
number
32-bit cyclic redundancy checksum Returns CRC of the bytes buf[0..len-1]
crc_table : Uint32Array
Kind: global constant
update_crc(crc, buf, offset, len) ⇒ number
Update a running CRC with the bytes buf[0..len-1]--the CRC should be initialized to all 1's, and the transmitted value is the 1's complement of the final running CRC (see the crc32() routine below)).
Kind: global function
Param | Type |
---|---|
crc | number |
buf | Uint8Array |
offset | number |
len | number |
crc32(buffer, offset, length) ⇒ number
32-bit cyclic redundancy checksum Returns CRC of the bytes buf[0..len-1]
Kind: global function
See: https://en.wikipedia.org/wiki/Cyclic_redundancy_check
Param | Type | Description |
---|---|---|
buffer | Uint8Array | byte buffer |
offset | number | |
length | number | how many bytes to include in checksum calculation |