Main Page | Modules | Directories | File List | Globals | Related Pages

gm_crc.c File Reference

#include "gm_internal.h"

Functions

GM_ENTRY_POINT unsigned long gm_crc (void *_ptr, gm_size_t len)
GM_ENTRY_POINT unsigned long gm_crc_str (const char *ptr)

Detailed Description

This file contains the GM API functions, gm_crc() and gm_crc_str(), which compute 32-bit CRCs on the contents of memory. These functions are not guaranteed to perform any particular variant of the CRC-32, but these functions are useful for creating robust hashing functions.

Function Documentation

GM_ENTRY_POINT unsigned long gm_crc void *  _ptr,
gm_size_t  len
 

gm_crc() computes a CRC-32 of the indicated range of memory.

Return values:
long 
Parameters:
_ptr (IN) Pointer to a range of memory.
len (IN) The length of the indicated range of memory.
Author:
Glenn Brown
Version:
GM_API_VERSION (as defined in gm.h)

GM_ENTRY_POINT unsigned long gm_crc_str const char *  ptr  ) 
 

gm_crc_str() computes a CRC-32 for the indicated string.

Return values:
long 
Parameters:
ptr (IN) Pointer to a string.
Author:
Glenn Brown
Version:
GM_API_VERSION (as defined in gm.h)


Generated on Sat May 20 19:20:41 2006 for GM by  doxygen 1.4.4