CRC32 [英] CRC32

查看:76
本文介绍了CRC32的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好NG。


有谁知道我可以下载/获得一个C实现

a CRC32检查的地方。

我想要一个简单的函数,例如,有一个指针指向要计算CRC32的

数据的位置,表示数据的长度

并且可能将多项式作为输入参数然后将返回

计算的crc32值,例如一个未签名的长。


Don

解决方案

2003年7月30日星期三14:29:42 + 0200

" Don" <无** @ spam.dk>写道:

嗨NG。

有谁知道我可以下载/获得CRC实施的CRC32检查的地方。
我想要一个简单的函数,例如,有一个指向要计算CRC32数据的位置的指针,数据长度的指示
以及可能多项式作为输入参数然后返回
计算的crc32值,例如$




了解搜索引擎的价值!

一个简单的谷歌搜索为我提供了:
http:/ /remus.rutgers.edu/~rhoads/Code/crc-32b.c


-

main(int c,char * k,char * s){c> 0?main(0," adceoX


_k6] [^ hn"," -7 \

0#05&安培;'40

0.6 '' + 3)3 + 1%30英寸),看跌期权(QUOT;"):?!?* S C = C - * s:(putchar(45),c

),putchar(main(c,k + = * sc * -1,s + 1)):( s = 0);返回!s? 10:10 + * k;}


Hi NG.

Does anyone know of a place where I could download/get a C implementation of
a CRC32 check.
I would like a simple function that, for example, had a pointer to where the
data to be CRC32 calculated reside, an indication of the length of the data
and perhaps the polynomium as input arguments and then would return the
calculated crc32 value like e.g. an unsigned long.

Don

解决方案

On Wed, 30 Jul 2003 14:29:42 +0200
"Don" <no**@spam.dk> wrote:

Hi NG.

Does anyone know of a place where I could download/get a C implementation of
a CRC32 check.
I would like a simple function that, for example, had a pointer to where the
data to be CRC32 calculated reside, an indication of the length of the data
and perhaps the polynomium as input arguments and then would return the
calculated crc32 value like e.g. an unsigned long.

Don



Learn the value of search engines!
A simple google search provided me with:
http://remus.rutgers.edu/~rhoads/Code/crc-32b.c

--
main(int c,char*k,char*s){c>0?main(0,"adceoX


_k6][^hn","-7\
0#05&''40


.6''+).3+1%30"),puts(""):*s?c=!c?-*s:(putchar(45),c
),putchar(main(c,k+=*s-c*-1,s+1)):(s=0);return!s?10:10+*k;}


这篇关于CRC32的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆