CRC32_RK
Loading...
Searching...
No Matches
Data Structures | Static Public Member Functions
CRC32_RK Class Reference

Class to calculate CRC32 (32-bit Cyclic Redundancy Check) More...

#include <CRC32_RK.h>

Data Structures

class  State
 Class to allow calculation across multiple buffers. More...
 

Static Public Member Functions

static uint32_t calculate (const unsigned char *buf, size_t len)
 Calculate the CRC32 for a single buffer of data.
 

Detailed Description

Class to calculate CRC32 (32-bit Cyclic Redundancy Check)

It uses the polynomial and other parameters as in gzip. If you need a node.js version, see the crc package in NPM.

Member Function Documentation

◆ calculate()

uint32_t CRC32_RK::calculate ( const unsigned char * buf,
size_t len )
static

Calculate the CRC32 for a single buffer of data.

Parameters
bufPointer to a buffer to calculate the CRC for. Cannot be null.
lenThe length of the buffer in bytes
Returns
uint32_t The CRC32 of the data

The documentation for this class was generated from the following files: