Home
last modified time | relevance | path

Searched refs:nxt_pointer_to (Results 1 – 24 of 24) sorted by relevance

/unit/src/
H A Dnxt_array.h24 array->elts = nxt_pointer_to(array, sizeof(nxt_array_t)); in nxt_array_init()
39 nxt_pointer_to((array)->elts, (array)->size * ((array)->nelts - 1))
54 return nxt_pointer_to(array->elts, array->size * array->nelts); in nxt_array_remove_last()
H A Dnxt_vector.c19 vector->start = nxt_pointer_to(vector, sizeof(nxt_vector_t)); in nxt_vector_create()
115 item = nxt_pointer_to(vector->start, vector->item_size * vector->items); in nxt_vector_add()
146 end = nxt_pointer_to(vector->start, item_size * vector->items); in nxt_vector_remove()
150 next = nxt_pointer_to(item, item_size); in nxt_vector_remove()
H A Dnxt_array.c21 array->elts = nxt_pointer_to(array, sizeof(nxt_array_t)); in nxt_array_create()
34 if (array->elts != nxt_pointer_to(array, sizeof(nxt_array_t))) { in nxt_array_destroy()
69 if (array->elts != nxt_pointer_to(array, sizeof(nxt_array_t))) { in nxt_array_add()
77 p = nxt_pointer_to(array->elts, array->size * array->nelts); in nxt_array_add()
H A Dnxt_vector.h45 nxt_pointer_to((vector)->start, \
61 return nxt_pointer_to(vector->start, vector->item_size * vector->items); in nxt_vector_remove_last()
H A Dnxt_sockaddr.h113 #define nxt_sockaddr_start(sa) nxt_pointer_to(sa, (sa)->start)
114 #define nxt_sockaddr_address(sa) nxt_pointer_to(sa, (sa)->address_start)
115 #define nxt_sockaddr_port(sa) nxt_pointer_to(sa, (sa)->port_start)
H A Dnxt_buf.c26 b->mem.end = nxt_pointer_to(start, size); in nxt_buf_mem_init()
46 b->mem.start = nxt_pointer_to(b, NXT_BUF_MEM_SIZE); in nxt_buf_mem_alloc()
76 b->mem.start = nxt_pointer_to(b, NXT_BUF_MEM_SIZE in nxt_buf_mem_ts_alloc()
83 ts = nxt_pointer_to(b, NXT_BUF_MEM_SIZE); in nxt_buf_mem_ts_alloc()
112 b->mem.start = nxt_pointer_to(b, NXT_BUF_FILE_SIZE); in nxt_buf_file_alloc()
250 ts = nxt_pointer_to(b, NXT_BUF_MEM_SIZE); in nxt_buf_ts_handle()
H A Dnxt_list.h62 return nxt_pointer_to(nxt_list_data(part), n * (list)->size); in nxt_list_elt()
103 (nxt_pointer_to(nxt_list_data((next)->part), (next)->elt * (list)->size))
H A Dnxt_list.c56 elt = nxt_pointer_to(nxt_list_data(last), last->nelts * list->size); in nxt_list_add()
H A Dnxt_errno.c110 p = nxt_pointer_to(nxt_sys_errlist, n); in nxt_strerror_start()
H A Dnxt_pcre.c45 pattern = nxt_pointer_to(re, sizeof(nxt_regex_t)); in nxt_regex_compile()
H A Dnxt_port_rpc.c110 reg = nxt_pointer_to(ex, -sizeof(nxt_port_rpc_reg_t)); in nxt_port_rpc_register_handler()
179 reg = nxt_pointer_to(ex, -sizeof(nxt_port_rpc_reg_t)); in nxt_port_rpc_ex_stream()
196 reg = nxt_pointer_to(ex, -sizeof(nxt_port_rpc_reg_t)); in nxt_port_rpc_ex_set_peer()
H A Dnxt_clang.h205 #define nxt_pointer_to(p, offset) \ macro
H A Dnxt_process.h167 (nxt_pointer_to(process, sizeof(nxt_process_t)))
H A Dnxt_h1proto_websocket.c419 mask = nxt_pointer_to(wsh, hsize - 4); in nxt_h1p_conn_ws_frame_process()
420 p = nxt_pointer_to(wsh, hsize); in nxt_h1p_conn_ws_frame_process()
H A Dnxt_conn_write.c283 res = write(s, nxt_pointer_to(map, page_off), size); in nxt_sendfile()
H A Dnxt_string.c20 s->start = nxt_pointer_to(s, sizeof(nxt_str_t)); in nxt_str_alloc()
H A Dnxt_conf.c258 value->u.object = nxt_pointer_to(value, sizeof(nxt_conf_value_t)); in nxt_conf_create_object()
359 value->u.array = nxt_pointer_to(value, sizeof(nxt_conf_value_t)); in nxt_conf_create_array()
592 ptr = nxt_pointer_to(data, map[i].offset); in nxt_conf_map_object()
H A Dnxt_event_engine.c699 b->mem.start = nxt_pointer_to(b, NXT_BUF_MEM_SIZE); in nxt_event_engine_buf_mem_alloc()
H A Dnxt_mem_zone.c757 end = nxt_pointer_to(block, block->size << zone->page_size_shift); in nxt_mem_zone_find_free_block()
H A Dnxt_http_route.c1315 action->u.pass = nxt_pointer_to(action, sizeof(nxt_http_action_t)); in nxt_http_pass_var()
1676 p = nxt_pointer_to(r, rule->u.offset); in nxt_http_route_rule()
H A Dnxt_sockaddr.c243 start = nxt_pointer_to(sa, offset); in nxt_sockaddr_text()
H A Dnxt_router.c817 ret = nxt_router_conf_create(task, tmcf, p, nxt_pointer_to(p, size)); in nxt_router_conf_data_handler()
1580 app->name.start = nxt_pointer_to(app, sizeof(nxt_app_t)); in nxt_router_conf_create()
1581 app->conf.start = nxt_pointer_to(app, sizeof(nxt_app_t) in nxt_router_conf_create()
2502 ls->sockaddr = nxt_pointer_to(ls, sizeof(nxt_listen_socket_t)); in nxt_router_socket_conf()
5623 query_pos = nxt_pointer_to(target_pos, in nxt_router_prepare_msg()
H A Dnxt_h1proto.c907 tmp_name.start = nxt_pointer_to(b->mem.start, sizeof(nxt_file_t)); in nxt_h1p_request_body_read()
H A Dnxt_unit.c3080 dst = nxt_pointer_to(dst, res); in nxt_unit_request_read()
4221 end = nxt_pointer_to(recv_msg->start, recv_msg->size); in nxt_unit_mmap_read()