libcoyotl - A Library of C++ Tools

Created by Scott Robert Ladd at Coyote Gulch Productions.


Classes | Public Member Functions
libcoyotl::crc_calculator Class Reference

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

#include <crccalc.h>

List of all members.

Classes

Public Member Functions


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

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


Member Function Documentation

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.