- Inherits from:
- Object
- Declared in:
- DCRC32.h
Object
|
+---DCRC32
Class Description
The CRC32 class implements a number of methods for calculating the CRC-32
checksum.
- Last modified:
- 27-Feb-2005 (DCRC32.h)
Instance Variables
- private unsigned long _crc32
- the crc32 value
- Constructors
- - (DCRC32 *) init
- Initialise to an empty object
- Returns:
- the instance
- - (DCRC32 *) init :(const char *) cstring
- Initialise the object with a c-string
- Parameters:
- cstring - the string
- Returns:
- the object
- - (DCRC32 *) init :(const char *) data :(unsigned long) length
- Initialise the object with data
- Parameters:
- data - the data ('\0' allowed)
length - the length of the data
- Returns:
- the object
- Update methods
- - (DCRC32 *) update :(const char *) cstring
- Update the object with a c-string. Repeated calls can be compared
to a single call in which the strings are concatted
- Parameters:
- cstring - the c-string to be feeded to crc32
- Returns:
- the object
- - (DCRC32 *) update :(const unsigned char *) data :(unsigned long) length
- Update the object with data. Repeated calls can be compared
to a single call in which the strings are concatted
- Parameters:
- data - the data to be feeded to md5
length - the length of the data
- Returns:
- the object
- Result methods
- - (unsigned long) crc32
- Return the (current) result of all data passed to the object.
- Returns:
- the crc32 value
generated 08-Jan-2006 by ObjcDoc 3.0.0