php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
crc32.h File Reference

Go to the source code of this file.

Macros

#define CRC32(crc, ch)
 
#define php_crc32_bulk_init()
 
#define php_crc32_bulk_end(c)
 

Functions

PHPAPI uint32_t php_crc32_bulk_update (uint32_t crc, const char *p, size_t nr)
 
PHPAPI zend_result php_crc32_stream_bulk_update (uint32_t *crc, php_stream *fp, size_t nr)
 

Macro Definition Documentation

◆ CRC32

#define CRC32 ( crc,
ch )
Value:
(crc = (crc >> 8) ^ crc32tab[(crc ^ (ch)) & 0xff])
zend_long ch
Definition ffi.c:4580

Definition at line 24 of file crc32.h.

◆ php_crc32_bulk_end

#define php_crc32_bulk_end ( c)
Value:
((c) ^ 0xffffffff)

Definition at line 27 of file crc32.h.

◆ php_crc32_bulk_init

#define php_crc32_bulk_init ( )
Value:
(0 ^ 0xffffffff)

Definition at line 26 of file crc32.h.

Function Documentation

◆ php_crc32_bulk_update()

PHPAPI uint32_t php_crc32_bulk_update ( uint32_t crc,
const char * p,
size_t nr )

Definition at line 108 of file crc32.c.

◆ php_crc32_stream_bulk_update()

PHPAPI zend_result php_crc32_stream_bulk_update ( uint32_t * crc,
php_stream * fp,
size_t nr )

Definition at line 131 of file crc32.c.