php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_hash_xxhash.h File Reference
#include "xxhash/xxhash.h"

Go to the source code of this file.

Data Structures

struct  PHP_XXH32_CTX
 
struct  PHP_XXH64_CTX
 
struct  PHP_XXH3_CTX
 

Macros

#define XXH_INLINE_ALL   1
 
#define PHP_XXH32_SPEC   "llllllllllll"
 
#define PHP_XXH64_SPEC   "qqqqqqqqqllq"
 
#define PHP_XXH3_SECRET_SIZE_MIN   XXH3_SECRET_SIZE_MIN
 
#define PHP_XXH3_SECRET_SIZE_MAX   256
 

Typedefs

typedef PHP_XXH3_CTX PHP_XXH3_64_CTX
 
typedef PHP_XXH3_CTX PHP_XXH3_128_CTX
 

Functions

PHP_HASH_API void PHP_XXH32Init (PHP_XXH32_CTX *ctx, HashTable *args)
 
PHP_HASH_API void PHP_XXH32Update (PHP_XXH32_CTX *ctx, const unsigned char *in, size_t len)
 
PHP_HASH_API void PHP_XXH32Final (unsigned char digest[4], PHP_XXH32_CTX *ctx)
 
PHP_HASH_API zend_result PHP_XXH32Copy (const php_hash_ops *ops, const PHP_XXH32_CTX *orig_context, PHP_XXH32_CTX *copy_context)
 
PHP_HASH_API void PHP_XXH64Init (PHP_XXH64_CTX *ctx, HashTable *args)
 
PHP_HASH_API void PHP_XXH64Update (PHP_XXH64_CTX *ctx, const unsigned char *in, size_t len)
 
PHP_HASH_API void PHP_XXH64Final (unsigned char digest[8], PHP_XXH64_CTX *ctx)
 
PHP_HASH_API zend_result PHP_XXH64Copy (const php_hash_ops *ops, const PHP_XXH64_CTX *orig_context, PHP_XXH64_CTX *copy_context)
 
PHP_HASH_API void PHP_XXH3_64_Init (PHP_XXH3_64_CTX *ctx, HashTable *args)
 
PHP_HASH_API void PHP_XXH3_64_Update (PHP_XXH3_64_CTX *ctx, const unsigned char *in, size_t len)
 
PHP_HASH_API void PHP_XXH3_64_Final (unsigned char digest[8], PHP_XXH3_64_CTX *ctx)
 
PHP_HASH_API zend_result PHP_XXH3_64_Copy (const php_hash_ops *ops, const PHP_XXH3_64_CTX *orig_context, PHP_XXH3_64_CTX *copy_context)
 
PHP_HASH_API void PHP_XXH3_128_Init (PHP_XXH3_128_CTX *ctx, HashTable *args)
 
PHP_HASH_API void PHP_XXH3_128_Update (PHP_XXH3_128_CTX *ctx, const unsigned char *in, size_t len)
 
PHP_HASH_API void PHP_XXH3_128_Final (unsigned char digest[16], PHP_XXH3_128_CTX *ctx)
 
PHP_HASH_API zend_result PHP_XXH3_128_Copy (const php_hash_ops *ops, const PHP_XXH3_128_CTX *orig_context, PHP_XXH3_128_CTX *copy_context)
 

Macro Definition Documentation

◆ PHP_XXH32_SPEC

#define PHP_XXH32_SPEC   "llllllllllll"

Definition at line 26 of file php_hash_xxhash.h.

◆ PHP_XXH3_SECRET_SIZE_MAX

#define PHP_XXH3_SECRET_SIZE_MAX   256

Definition at line 44 of file php_hash_xxhash.h.

◆ PHP_XXH3_SECRET_SIZE_MIN

#define PHP_XXH3_SECRET_SIZE_MIN   XXH3_SECRET_SIZE_MIN

Definition at line 43 of file php_hash_xxhash.h.

◆ PHP_XXH64_SPEC

#define PHP_XXH64_SPEC   "qqqqqqqqqllq"

Definition at line 36 of file php_hash_xxhash.h.

◆ XXH_INLINE_ALL

#define XXH_INLINE_ALL   1

Definition at line 20 of file php_hash_xxhash.h.

Typedef Documentation

◆ PHP_XXH3_128_CTX

Definition at line 65 of file php_hash_xxhash.h.

◆ PHP_XXH3_64_CTX

Definition at line 58 of file php_hash_xxhash.h.

Function Documentation

◆ PHP_XXH32Copy()

PHP_HASH_API zend_result PHP_XXH32Copy ( const php_hash_ops * ops,
const PHP_XXH32_CTX * orig_context,
PHP_XXH32_CTX * copy_context )

Definition at line 72 of file hash_xxhash.c.

◆ PHP_XXH32Final()

PHP_HASH_API void PHP_XXH32Final ( unsigned char digest[4],
PHP_XXH32_CTX * ctx )

Definition at line 67 of file hash_xxhash.c.

◆ PHP_XXH32Init()

PHP_HASH_API void PHP_XXH32Init ( PHP_XXH32_CTX * ctx,
HashTable * args )

Definition at line 40 of file hash_xxhash.c.

◆ PHP_XXH32Update()

PHP_HASH_API void PHP_XXH32Update ( PHP_XXH32_CTX * ctx,
const unsigned char * in,
size_t len )

Definition at line 62 of file hash_xxhash.c.

◆ PHP_XXH3_128_Copy()

PHP_HASH_API zend_result PHP_XXH3_128_Copy ( const php_hash_ops * ops,
const PHP_XXH3_128_CTX * orig_context,
PHP_XXH3_128_CTX * copy_context )

Definition at line 278 of file hash_xxhash.c.

◆ PHP_XXH3_128_Final()

PHP_HASH_API void PHP_XXH3_128_Final ( unsigned char digest[16],
PHP_XXH3_128_CTX * ctx )

Definition at line 273 of file hash_xxhash.c.

◆ PHP_XXH3_128_Init()

PHP_HASH_API void PHP_XXH3_128_Init ( PHP_XXH3_128_CTX * ctx,
HashTable * args )

Definition at line 263 of file hash_xxhash.c.

◆ PHP_XXH3_128_Update()

PHP_HASH_API void PHP_XXH3_128_Update ( PHP_XXH3_128_CTX * ctx,
const unsigned char * in,
size_t len )

Definition at line 268 of file hash_xxhash.c.

◆ PHP_XXH3_64_Copy()

PHP_HASH_API zend_result PHP_XXH3_64_Copy ( const php_hash_ops * ops,
const PHP_XXH3_64_CTX * orig_context,
PHP_XXH3_64_CTX * copy_context )

Definition at line 228 of file hash_xxhash.c.

◆ PHP_XXH3_64_Final()

PHP_HASH_API void PHP_XXH3_64_Final ( unsigned char digest[8],
PHP_XXH3_64_CTX * ctx )

Definition at line 223 of file hash_xxhash.c.

◆ PHP_XXH3_64_Init()

PHP_HASH_API void PHP_XXH3_64_Init ( PHP_XXH3_64_CTX * ctx,
HashTable * args )

Definition at line 213 of file hash_xxhash.c.

◆ PHP_XXH3_64_Update()

PHP_HASH_API void PHP_XXH3_64_Update ( PHP_XXH3_64_CTX * ctx,
const unsigned char * in,
size_t len )

Definition at line 218 of file hash_xxhash.c.

◆ PHP_XXH64Copy()

PHP_HASH_API zend_result PHP_XXH64Copy ( const php_hash_ops * ops,
const PHP_XXH64_CTX * orig_context,
PHP_XXH64_CTX * copy_context )

Definition at line 137 of file hash_xxhash.c.

◆ PHP_XXH64Final()

PHP_HASH_API void PHP_XXH64Final ( unsigned char digest[8],
PHP_XXH64_CTX * ctx )

Definition at line 132 of file hash_xxhash.c.

◆ PHP_XXH64Init()

PHP_HASH_API void PHP_XXH64Init ( PHP_XXH64_CTX * ctx,
HashTable * args )

Definition at line 107 of file hash_xxhash.c.

◆ PHP_XXH64Update()

PHP_HASH_API void PHP_XXH64Update ( PHP_XXH64_CTX * ctx,
const unsigned char * in,
size_t len )

Definition at line 127 of file hash_xxhash.c.