libcoyotl - A Library of C++ Tools

Created by Scott Robert Ladd at Coyote Gulch Productions.


libcoyotl::crc_calculator Class Reference

Calculate 32-bit CRC values from byte data. More...

#include <crccalc.h>

List of all members.

Public Member Functions

Classes


Detailed Description

Calculates a 32-bit CRC value using the algorithm specified by ISO 3309, and as used by the PNG graphics specification.
Version:
1.1.0
Date:
15 June 2002


Constructor & Destructor Documentation

libcoyotl::crc_calculator::crc_calculator  ) 
 

Constructs a new CRC value with a base value of 0xFFFFFFFF.


Member Function Documentation

crc32_t libcoyotl::crc_calculator::get_crc32  )  [inline]
 

Returns the current 32-bit CRC value. This value will change with subsequent calls to update.

Returns:
Current 32-bit CRC value

void libcoyotl::crc_calculator::update const unsigned char *  a_data,
size_t  a_length
 

Updates the crc value from the bytes provided in data. Each time this function is called for a given crc_calculator, the 32-bit CRC value changes to reflect the new bytes.

Parameters:
a_data - Array of bytes to be "added" to the CRC value
a_length - Number of bytes in the data array


The documentation for this class was generated from the following file:

© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.