Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 10 of 10) sorted by relevance

/unit/src/
H A Dnxt_vector.c16 vector = proto->alloc(pool, sizeof(nxt_vector_t) + items * item_size); in nxt_vector_create()
34 vector->start = proto->alloc(pool, items * item_size); in nxt_vector_init()
96 start = proto->alloc(pool, size); in nxt_vector_add()
H A Dnxt_main.h88 nxt_mem_proto_alloc_t alloc; member
H A Dnxt_cache.h34 void *(*alloc)(void *data, size_t size); member
H A Dnxt_lvlhsh.h78 nxt_lvlhsh_alloc_t alloc; member
H A Dnxt_file_cache.c326 node = cache->alloc(cache->data, sizeof(nxt_cache_node_t)); in nxt_cache_node_alloc()
368 qw = cache->alloc(cache->data, sizeof(nxt_cache_query_wait_t)); in nxt_cache_query_wait_alloc()
H A Dnxt_http_static.c785 size_t alloc; in nxt_http_static_body_handler() local
801 alloc = nxt_min(rest, NXT_HTTP_STATIC_BUF_SIZE); in nxt_http_static_body_handler()
803 b = nxt_buf_mem_alloc(r->mem_pool, alloc, 0); in nxt_http_static_body_handler()
816 rest -= alloc; in nxt_http_static_body_handler()
H A Dnxt_cache.c576 node = cache->alloc(cache->data, sizeof(nxt_cache_node_t)); in nxt_cache_node_alloc()
618 qw = cache->alloc(cache->data, sizeof(nxt_cache_query_wait_t)); in nxt_cache_query_wait_alloc()
H A Dnxt_cert.c817 size_t size, alloc; in nxt_cert_store_load() local
840 alloc = 0; in nxt_cert_store_load()
873 if (size > alloc) { in nxt_cert_store_load()
881 alloc = size; in nxt_cert_store_load()
H A Dnxt_lvlhsh.c292 bucket = lhq->proto->alloc(lhq->pool, nxt_lvlhsh_bucket_size(lhq->proto)); in nxt_lvlhsh_new_bucket()
465 lvl = proto->alloc(lhq->pool, size * (sizeof(void *))); in nxt_lvlhsh_convert_bucket_to_level()
H A Dnxt_router.c929 size_t alloc; in nxt_router_status_handler() local
946 alloc = sizeof(nxt_status_report_t); in nxt_router_status_handler()
950 alloc += sizeof(nxt_status_app_t) + app->name.length; in nxt_router_status_handler()
954 b = nxt_buf_mem_alloc(port->mem_pool, alloc, 0); in nxt_router_status_handler()