class Digest::CRC32XFER
Implements the CRC32
XFER algorithm.
Constants
- INIT_CRC
- TABLE
Generated by ‘./pycrc.py –algorithm=table-driven –model=xfer –generate=c`
- XOR_MASK
Public Instance Methods
update(data)
click to toggle source
Updates the CRC32
XFER checksum.
@param [String] data
The data to update the checksum with.
# File lib/digest/crc32_xfer.rb, line 55 def update(data) data.each_byte do |b| @crc = (@table[((@crc >> 24) ^ b) & 0xff] ^ (@crc << 8)) & 0xffffffff end return self end