GNU Radio 2.x: gr_crc32.h File Reference

Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

# gr_crc32.h File Reference

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

Include dependency graph for gr_crc32.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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

## Function Documentation

unsigned int gr_crc32 | ( | const std::string | buf | ) |

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

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

unsigned int gr_update_crc32 | ( | unsigned int | crc,
|  | const unsigned char * | buf,
|  | int | 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.