MySQL 9.6.0
Source Code Documentation
lf_types.h File Reference
#include "my_inttypes.h"

Go to the source code of this file.

Macros

#define LF_HASH_UNIQUE   1
 
#define MY_LF_ERRPTR   ((void *)(intptr)1)
 

Typedefs

typedef const uchar *(* hash_get_key_function) (const uchar *arg, size_t *length)
 Callback for extracting key and key length from user data in a LF_HASH. More...
 
typedef void lf_allocator_func(uchar *)
 
typedef int lf_hash_match_func(const uchar *el, void *arg)
 
typedef void lf_hash_init_func(uchar *dst, const uchar *src)
 

Macro Definition Documentation

◆ LF_HASH_UNIQUE

#define LF_HASH_UNIQUE   1

◆ MY_LF_ERRPTR

#define MY_LF_ERRPTR   ((void *)(intptr)1)

Typedef Documentation

◆ hash_get_key_function

typedef const uchar *(* hash_get_key_function) (const uchar *arg, size_t *length)

Callback for extracting key and key length from user data in a LF_HASH.

Parameters
argPointer to user data.
[out]lengthStore key length here.
Returns
Pointer to key to be hashed.
Note
Was my_hash_get_key, with lots of C-style casting when calling my_hash_init. Renamed to force build error (since signature changed) in case someone keeps following that coding style.

◆ lf_allocator_func

typedef void lf_allocator_func(uchar *)

◆ lf_hash_init_func

typedef void lf_hash_init_func(uchar *dst, const uchar *src)

◆ lf_hash_match_func

typedef int lf_hash_match_func(const uchar *el, void *arg)