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