Groonga 3.0.9 Source Code Document
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
ngx_hash.c File Reference
#include <ngx_config.h>
#include <ngx_core.h>
Include dependency graph for ngx_hash.c:

Go to the source code of this file.

Macros

#define NGX_HASH_ELT_SIZE(name)   (sizeof(void *) + ngx_align((name)->key.len + 2, sizeof(void *)))

Functions

void * ngx_hash_find (ngx_hash_t *hash, ngx_uint_t key, u_char *name, size_t len)
void * ngx_hash_find_wc_head (ngx_hash_wildcard_t *hwc, u_char *name, size_t len)
void * ngx_hash_find_wc_tail (ngx_hash_wildcard_t *hwc, u_char *name, size_t len)
void * ngx_hash_find_combined (ngx_hash_combined_t *hash, ngx_uint_t key, u_char *name, size_t len)
ngx_int_t ngx_hash_init (ngx_hash_init_t *hinit, ngx_hash_key_t *names, ngx_uint_t nelts)
ngx_int_t ngx_hash_wildcard_init (ngx_hash_init_t *hinit, ngx_hash_key_t *names, ngx_uint_t nelts)
ngx_uint_t ngx_hash_key (u_char *data, size_t len)
ngx_uint_t ngx_hash_key_lc (u_char *data, size_t len)
ngx_uint_t ngx_hash_strlow (u_char *dst, u_char *src, size_t n)
ngx_int_t ngx_hash_keys_array_init (ngx_hash_keys_arrays_t *ha, ngx_uint_t type)
ngx_int_t ngx_hash_add_key (ngx_hash_keys_arrays_t *ha, ngx_str_t *key, void *value, ngx_uint_t flags)

Macro Definition Documentation

#define NGX_HASH_ELT_SIZE (   name)    (sizeof(void *) + ngx_align((name)->key.len + 2, sizeof(void *)))

Definition at line 248 of file ngx_hash.c.

Function Documentation

ngx_int_t ngx_hash_add_key ( ngx_hash_keys_arrays_t ha,
ngx_str_t key,
void *  value,
ngx_uint_t  flags 
)

Definition at line 707 of file ngx_hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* ngx_hash_find ( ngx_hash_t hash,
ngx_uint_t  key,
u_char *  name,
size_t  len 
)

Definition at line 13 of file ngx_hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* ngx_hash_find_combined ( ngx_hash_combined_t hash,
ngx_uint_t  key,
u_char *  name,
size_t  len 
)

Definition at line 211 of file ngx_hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* ngx_hash_find_wc_head ( ngx_hash_wildcard_t hwc,
u_char *  name,
size_t  len 
)

Definition at line 53 of file ngx_hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* ngx_hash_find_wc_tail ( ngx_hash_wildcard_t hwc,
u_char *  name,
size_t  len 
)

Definition at line 147 of file ngx_hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_hash_init ( ngx_hash_init_t hinit,
ngx_hash_key_t names,
ngx_uint_t  nelts 
)

Definition at line 252 of file ngx_hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_uint_t ngx_hash_key ( u_char *  data,
size_t  len 
)

Definition at line 604 of file ngx_hash.c.

Here is the caller graph for this function:

ngx_uint_t ngx_hash_key_lc ( u_char *  data,
size_t  len 
)

Definition at line 619 of file ngx_hash.c.

Here is the caller graph for this function:

ngx_int_t ngx_hash_keys_array_init ( ngx_hash_keys_arrays_t ha,
ngx_uint_t  type 
)

Definition at line 652 of file ngx_hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_uint_t ngx_hash_strlow ( u_char *  dst,
u_char *  src,
size_t  n 
)

Definition at line 634 of file ngx_hash.c.

Here is the caller graph for this function:

ngx_int_t ngx_hash_wildcard_init ( ngx_hash_init_t hinit,
ngx_hash_key_t names,
ngx_uint_t  nelts 
)

Definition at line 459 of file ngx_hash.c.

Here is the call graph for this function:

Here is the caller graph for this function: