Class DCRC32

Inherits from:
Object
Declared in:
DCRC32.h

Class Hierarchy

    Object
      |
      +---DCRC32

Class Description

The CRC32 class implements a number of methods for calculating the CRC-32 checksum.

Example:
#include <stdio.h>
#include "ofc/DCRC32.h"

int main(int argc, char *argv[])
{
  DCRC32 *crc = [DCRC32 new];

  [crc update :"This is an example for the CRC32 class"];  // Feed the CRC32 with a c-string

  [crc update :"This is data\0With string terminator" :35]; // Feed the CRC32 with data

  printf("CRC32 value: %lx.\n", [crc crc32]);              // Get the CRC32 value

  [crc free];                                              // Cleanup

  return 0;
}
Last modified:
26-Aug-2008 (DCRC32.h)

Instance Variables

private uint32_t _crc32
the crc32 value

Method Index


generated 06-Sep-2008 by ObjcDoc 3.0.0