Home
last modified time | relevance | path

Searched refs:array (Results 1 – 20 of 20) sorted by relevance

/unit/src/
H A Dnxt_array.c13 nxt_array_t *array; in nxt_array_create() local
21 array->elts = nxt_pointer_to(array, sizeof(nxt_array_t)); in nxt_array_create()
22 array->nelts = 0; in nxt_array_create()
27 return array; in nxt_array_create()
34 if (array->elts != nxt_pointer_to(array, sizeof(nxt_array_t))) { in nxt_array_destroy()
35 nxt_mp_free(array->mem_pool, array->elts); in nxt_array_destroy()
38 nxt_mp_free(array->mem_pool, array); in nxt_array_destroy()
61 p = nxt_mp_alloc(array->mem_pool, array->size * new_alloc); in nxt_array_add()
67 nxt_memcpy(p, array->elts, array->size * nalloc); in nxt_array_add()
70 nxt_mp_free(array->mem_pool, array->elts); in nxt_array_add()
[all …]
H A Dnxt_array.h24 array->elts = nxt_pointer_to(array, sizeof(nxt_array_t)); in nxt_array_init()
25 array->size = size; in nxt_array_init()
26 array->mem_pool = mp; in nxt_array_init()
31 NXT_EXPORT void nxt_array_destroy(nxt_array_t *array);
32 NXT_EXPORT void *nxt_array_add(nxt_array_t *array);
39 nxt_pointer_to((array)->elts, (array)->size * ((array)->nelts - 1))
43 (array)->nelts = 0;
47 ((array)->nelts == 0)
51 nxt_array_remove_last(nxt_array_t *array) in nxt_array_remove_last() argument
53 array->nelts--; in nxt_array_remove_last()
[all …]
H A Dnxt_conf.c372 array->u.array->elements[index] = *value; in nxt_conf_set_element()
382 element = &array->u.array->elements[index]; in nxt_conf_set_element_string_dup()
744 nxt_conf_array_t *array; in nxt_conf_get_array_element() local
750 array = value->u.array; in nxt_conf_get_array_element()
769 array = value->u.array; in nxt_conf_get_array_element_or_itself()
789 array = value->u.array; in nxt_conf_array_qsort()
791 nxt_qsort(array->elements, array->count, sizeof(nxt_conf_value_t), compare); in nxt_conf_array_qsort()
1782 value->u.array = array; in nxt_conf_json_parse_array()
1785 array->count = count; in nxt_conf_json_parse_array()
2311 array = value->u.array; in nxt_conf_json_array_length()
[all …]
H A Dnxt_conf.h139 void nxt_conf_set_element(nxt_conf_value_t *array, nxt_uint_t index,
141 nxt_int_t nxt_conf_set_element_string_dup(nxt_conf_value_t *array, nxt_mp_t *mp,
H A Dnxt_isolation.c233 nxt_conf_value_t *array; in nxt_isolation_set_creds() local
240 array = nxt_conf_get_object_member(isolation, &uidname, NULL); in nxt_isolation_set_creds()
241 if (array != NULL) { in nxt_isolation_set_creds()
242 ret = nxt_isolation_credential_map(task, process->mem_pool, array, in nxt_isolation_set_creds()
250 array = nxt_conf_get_object_member(isolation, &gidname, NULL); in nxt_isolation_set_creds()
251 if (array != NULL) { in nxt_isolation_set_creds()
252 ret = nxt_isolation_credential_map(task, process->mem_pool, array, in nxt_isolation_set_creds()
H A Dnxt_http_request.c27 static nxt_http_name_value_t *nxt_http_argument(nxt_array_t *array,
32 static nxt_http_name_value_t *nxt_http_cookie(nxt_array_t *array, u_char *name,
878 nxt_http_argument(nxt_array_t *array, u_char *name, size_t name_length, in nxt_http_argument() argument
884 nv = nxt_array_add(array); in nxt_http_argument()
996 nxt_http_cookie(nxt_array_t *array, u_char *name, size_t name_length, in nxt_http_cookie() argument
1003 nv = nxt_array_add(array); in nxt_http_cookie()
H A Dnxt_cert.c746 nxt_conf_value_t *array; in nxt_cert_alt_names_details() local
761 array = nxt_conf_create_array(mp, n); in nxt_cert_alt_names_details()
762 if (nxt_slow_path(array == NULL)) { in nxt_cert_alt_names_details()
780 ret = nxt_conf_set_element_string_dup(array, mp, i++, &str); in nxt_cert_alt_names_details()
786 return array; in nxt_cert_alt_names_details()
H A Dnxt_http_route.c225 nxt_http_route_rule_t *rule, nxt_array_t *array);
233 nxt_http_route_rule_t *rule, nxt_array_t *array);
1980 nxt_http_route_rule_t *rule, nxt_array_t *array) in nxt_http_route_test_argument() argument
1987 nv = array->elts; in nxt_http_route_test_argument()
1988 end = nv + array->nelts; in nxt_http_route_test_argument()
2059 nxt_http_route_rule_t *rule, nxt_array_t *array) in nxt_http_route_test_cookie() argument
2066 nv = array->elts; in nxt_http_route_test_cookie()
2067 end = nv + array->nelts; in nxt_http_route_test_cookie()
H A Dnxt_conf_validation.c63 nxt_conf_vldt_element_t array; member
706 .u.array = nxt_conf_vldt_argument,
923 .u.array = nxt_conf_vldt_java_classpath,
932 .u.array = nxt_conf_vldt_java_option,
1034 .u.array = nxt_conf_vldt_clone_uidmap,
1039 .u.array = nxt_conf_vldt_clone_gidmap,
/unit/src/java/nginx/unit/websocket/pojo/
H A DPojoMessageHandlerWholeBinary.java98 byte[] array = new byte[message.limit() - message.position()]; in decode()
99 message.get(array); in decode()
100 ByteArrayInputStream bais = new ByteArrayInputStream(array); in decode()
115 byte[] array = new byte[message.remaining()]; in convert()
116 message.get(array); in convert()
118 return new ByteArrayInputStream(array); in convert()
120 return array; in convert()
H A DPojoMessageHandlerPartialBase.java65 parameters[indexPayload] = ((ByteBuffer) message).array(); in onMessage()
/unit/src/test/
H A Dnxt_clone_test.c561 nxt_conf_value_t *array, *obj, *value; in nxt_clone_test_parse_map() local
569 array = nxt_conf_json_parse_str(rt->mem_pool, map_str); in nxt_clone_test_parse_map()
570 if (array == NULL) { in nxt_clone_test_parse_map()
574 map->size = nxt_conf_array_elements_count(array); in nxt_clone_test_parse_map()
588 obj = nxt_conf_get_array_element(array, i); in nxt_clone_test_parse_map()
/unit/src/nodejs/unit-http/
H A Dwebsocket_request.js189 extensions.forEach(function(extension, index, array) { argument
193 extensionParams.forEach(function(rawParam, index, array) { argument
199 array.splice(index, 1, obj);
205 array.splice(index, 1, obj);
/unit/src/java/nginx/unit/websocket/
H A DPerMessageDeflate.java204 dest.array(), dest.arrayOffset() + dest.position(), dest.remaining()); in getMoreData()
216 readBuffer.array(), readBuffer.arrayOffset(), readBuffer.position()); in getMoreData()
338 deflater.setInput(uncompressedPayload.array(), in sendMessagePart()
348 int written = deflater.deflate(compressedPayload.array(), in sendMessagePart()
H A DWsFrameBase.java257 payloadLength = byteArrayToLong(inputBuffer.array(), in processRemainingHeader()
261 payloadLength = byteArrayToLong(inputBuffer.array(), in processRemainingHeader()
H A DWsWebSocketContainer.java416 String requestUri = new String(request.array(), StandardCharsets.ISO_8859_1) in connectToServerRecursive()
/unit/src/python/
H A Dnxt_python.c400 nxt_conf_value_t *array; in nxt_python_set_path() local
414 array = value; in nxt_python_set_path()
415 n = nxt_conf_array_elements_count_or_1(array); in nxt_python_set_path()
426 value = nxt_conf_get_array_element_or_itself(array, n); in nxt_python_set_path()
/unit/src/perl/
H A Dnxt_perl_psgi.c759 AV *array; in nxt_perl_psgi_result_status() local
763 array = (AV *) SvRV(result); in nxt_perl_psgi_result_status()
764 sv_status = av_fetch(array, 0, 0); in nxt_perl_psgi_result_status()
1023 AV *array; in nxt_perl_psgi_result_array() local
1029 array = (AV *) SvRV(result); in nxt_perl_psgi_result_array()
1030 array_len = av_len(array); in nxt_perl_psgi_result_array()
1050 sv_temp = av_fetch(array, 1, 0); in nxt_perl_psgi_result_array()
1072 sv_temp = av_fetch(array, 2, 0); in nxt_perl_psgi_result_array()
/unit/src/java/nginx/unit/
H A DRequest.java1313 sendWsFrame(req_info_ptr, payload.array(), payload.position(), in sendWsFrame()
/unit/
H A DCHANGES86 empty array of source or destination address patterns.
517 *) Bugfix: PUT and DELETE operations on array elements in configuration