ACE_crc_ccitt.cpp File Reference

#include "ace_pch.h"
#include "ace/ACE.h"

Defines

#define COMPUTE(var, ch)   (var) = (crc_table[(var ^ ch) & 0xFF] ^ (var >> 8))

Functions

ACE_UINT16 ACE::crc_ccitt (const char *string)
 Computes CRC-CCITT for the string.
ACE_UINT16 ACE::crc_ccitt (const void *buffer, size_t len, ACE_UINT16 crc)
 Computes CRC-CCITT for the buffer.
ACE_UINT16 ACE::crc_ccitt (const iovec *iov, int len, ACE_UINT16 crc)
 Computes CRC-CCITT for the @ len iovec buffers.

Variables

const ACE_UINT16 crc_table []

Define Documentation

#define COMPUTE var,
ch   )     (var) = (crc_table[(var ^ ch) & 0xFF] ^ (var >> 8))
 


Variable Documentation

const ACE_UINT16 crc_table[] [static]
 


Generated on Wed Nov 23 15:46:51 2005 for ACE by  doxygen 1.4.5