GNU Radio 3.6.5 C++ API

digital_crc32.h File Reference

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

Go to the source code of this file.

Functions

DIGITAL_API unsigned int digital_update_crc32 (unsigned int crc, const unsigned char *buf, size_t len)
 update running CRC-32Update 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.
DIGITAL_API unsigned int digital_update_crc32 (unsigned int crc, const std::string buf)
DIGITAL_API unsigned int digital_crc32 (const unsigned char *buf, size_t len)
DIGITAL_API unsigned int digital_crc32 (const std::string buf)

Function Documentation

DIGITAL_API unsigned int digital_crc32 ( const unsigned char *  buf,
size_t  len 
)
DIGITAL_API unsigned int digital_crc32 ( const std::string  buf)
DIGITAL_API unsigned int digital_update_crc32 ( unsigned int  crc,
const unsigned char *  buf,
size_t  len 
)

update running CRC-32Update 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.

DIGITAL_API unsigned int digital_update_crc32 ( unsigned int  crc,
const std::string  buf 
)