BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB-UTIL Reference

crc32.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
3 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19#ifndef __PJLIB_UTIL_CRC32_H__
20#define __PJLIB_UTIL_CRC32_H__
21
27#include <pjlib-util/types.h>
28
30
40typedef struct pj_crc32_context
41{
44
45
51PJ_DECL(void) pj_crc32_init(pj_crc32_context *ctx);
52
63 const pj_uint8_t *data,
64 pj_size_t nbytes);
65
74
84 pj_size_t nbytes);
85
86
92
93
94#endif /* __PJLIB_UTIL_CRC32_H__ */
95
pj_uint32_t pj_crc32_update(pj_crc32_context *ctx, const pj_uint8_t *data, pj_size_t nbytes)
pj_uint32_t pj_crc32_calc(const pj_uint8_t *data, pj_size_t nbytes)
void pj_crc32_init(pj_crc32_context *ctx)
pj_uint32_t pj_crc32_final(pj_crc32_context *ctx)
unsigned char pj_uint8_t
size_t pj_size_t
unsigned int pj_uint32_t
#define PJ_BEGIN_DECL
#define PJ_END_DECL
Definition: crc32.h:41
pj_uint32_t crc_state
Definition: crc32.h:42
PJLIB-UTIL types.

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.