libre  0.5.0
Functions
re_crc32.h File Reference

Interface to CRC-32 functions. More...

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

Go to the source code of this file.

Functions

uint32_t crc32 (uint32_t crc, const void *buf, uint32_t size)
 A function that calculates the CRC-32 based on the table above is given below for documentation purposes.

Detailed Description

Interface to CRC-32 functions.

Copyright (C) 2010 Creytiv.com

Definition in file re_crc32.h.

Function Documentation

uint32_t crc32 ( uint32_t  crc,
const void *  buf,
uint32_t  size 
)

A function that calculates the CRC-32 based on the table above is given below for documentation purposes.

An equivalent implementation of this function that's actually used in the kernel can be found in sys/libkern.h, where it can be inlined.

Parameters
crcInitial CRC value
bufBuffer to generate CRC from
sizeNumber of bytes in buffer
Returns
CRC value

Definition at line 109 of file crc32.c.