#include <openssl/lhash.h>
#include <assert.h>
#include <limits.h>
#include <string.h>
#include <openssl/mem.h>
#include "internal.h"
#include "../internal.h"
Go to the source code of this file.
|
static LHASH_ITEM ** | get_next_ptr_and_hash (const _LHASH *lh, uint32_t *out_hash, const void *data, lhash_hash_func_helper call_hash_func, lhash_cmp_func_helper call_cmp_func) |
|
static LHASH_ITEM ** | get_next_ptr_by_key (const _LHASH *lh, const void *key, uint32_t key_hash, int(*cmp_key)(const void *key, const void *value)) |
|
static void | lh_maybe_resize (_LHASH *lh) |
|
static void | lh_rebucket (_LHASH *lh, const size_t new_num_buckets) |
|
void * | OPENSSL_lh_delete (_LHASH *lh, const void *data, lhash_hash_func_helper call_hash_func, lhash_cmp_func_helper call_cmp_func) |
|
void | OPENSSL_lh_doall_arg (_LHASH *lh, void(*func)(void *, void *), void *arg) |
|
void | OPENSSL_lh_free (_LHASH *lh) |
|
int | OPENSSL_lh_insert (_LHASH *lh, void **old_data, void *data, lhash_hash_func_helper call_hash_func, lhash_cmp_func_helper call_cmp_func) |
|
_LHASH * | OPENSSL_lh_new (lhash_hash_func hash, lhash_cmp_func comp) |
|
size_t | OPENSSL_lh_num_items (const _LHASH *lh) |
|
void * | OPENSSL_lh_retrieve (const _LHASH *lh, const void *data, lhash_hash_func_helper call_hash_func, lhash_cmp_func_helper call_cmp_func) |
|
void * | OPENSSL_lh_retrieve_key (const _LHASH *lh, const void *key, uint32_t key_hash, int(*cmp_key)(const void *key, const void *value)) |
|
◆ LHASH_ITEM
◆ get_next_ptr_and_hash()
◆ get_next_ptr_by_key()
◆ lh_maybe_resize()
static void lh_maybe_resize |
( |
_LHASH * |
lh | ) |
|
|
static |
◆ lh_rebucket()
static void lh_rebucket |
( |
_LHASH * |
lh, |
|
|
const size_t |
new_num_buckets |
|
) |
| |
|
static |
◆ OPENSSL_lh_delete()
◆ OPENSSL_lh_doall_arg()
void OPENSSL_lh_doall_arg |
( |
_LHASH * |
lh, |
|
|
void(*)(void *, void *) |
func, |
|
|
void * |
arg |
|
) |
| |
◆ OPENSSL_lh_free()
void OPENSSL_lh_free |
( |
_LHASH * |
lh | ) |
|
◆ OPENSSL_lh_insert()
◆ OPENSSL_lh_new()
◆ OPENSSL_lh_num_items()
◆ OPENSSL_lh_retrieve()
◆ OPENSSL_lh_retrieve_key()
◆ kMaxAverageChainLength
const size_t kMaxAverageChainLength = 2 |
|
static |
◆ kMinAverageChainLength
const size_t kMinAverageChainLength = 1 |
|
static |
◆ kMinNumBuckets
const size_t kMinNumBuckets = 16 |
|
static |