#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) |
unsigned int gr_crc32 | ( | const std::string | buf | ) |
References gr_crc32().
unsigned int gr_crc32 | ( | const unsigned char * | buf, | |
size_t | len | |||
) |
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 gr_crc32(), and gr_update_crc32().