gr_crc32.h File Reference

#include <string>
#include <gr_types.h>

Go to the source code of this file.

Functions

unsigned int gr_update_crc32 (unsigned int crc, const unsigned char *buf, size_t len)
 update running CRC-32
unsigned int gr_update_crc32 (unsigned int crc, const std::string buf)
unsigned int gr_crc32 (const unsigned char *buf, size_t len)
unsigned int gr_crc32 (const std::string buf)


Function Documentation

unsigned int gr_crc32 ( const std::string  buf  ) 

References gr_crc32().

unsigned int gr_crc32 ( const unsigned char *  buf,
size_t  len 
)

References gr_update_crc32().

Referenced by _wrap_crc32(), and gr_crc32().

unsigned int gr_update_crc32 ( unsigned int  crc,
const std::string  buf 
)

References gr_update_crc32().

unsigned int gr_update_crc32 ( unsigned int  crc,
const unsigned char *  buf,
size_t  len 
)

update running CRC-32

Update a running CRC with the bytes buf[0..len-1] The CRC should be initialized to all 1's, and the transmitted value is the 1's complement of the final running CRC. The resulting CRC should be transmitted in big endian order.

Referenced by _wrap_update_crc32(), gr_crc32(), and gr_update_crc32().


Generated on Wed Oct 8 09:09:03 2008 for GNU Radio 3.0.4 by  doxygen 1.5.6