Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 116) sorted by relevance

12345

/unit/src/
H A Dnxt_string.h37 (void) memset(buf, 0, length)
41 (void) memset(buf, c, length)
49 size_t length);
51 size_t length);
61 return ((u_char *) memcpy(dst, src, length)) + length; in nxt_cpymem()
89 size_t length);
91 size_t length);
134 (((s1)->length == (s2)->length) \
139 (((s1)->length == (s2)->length) \
161 size_t length);
[all …]
H A Dnxt_parse.c45 length--; in nxt_int_parse()
47 } while (length != 0); in nxt_int_parse()
91 length--; in nxt_size_t_parse()
93 } while (length != 0); in nxt_size_t_parse()
116 length--; in nxt_size_parse()
196 length--; in nxt_off_t_parse()
216 size_t length; in nxt_str_int_parse() local
222 length = s->length; in nxt_str_int_parse()
249 length--; in nxt_str_int_parse()
251 } while (length != 0); in nxt_str_int_parse()
[all …]
H A Dnxt_string.c19 s->length = length; in nxt_str_alloc()
57 dst->length = src->length; in nxt_str_dup()
94 length--; in nxt_memcpy_lowcase()
107 length--; in nxt_memcpy_upcase()
133 if (length == 0) { in nxt_cpystrn()
249 length--; in nxt_memstrn()
278 size_t length) in nxt_memcasestrn() argument
285 length--; in nxt_memcasestrn()
319 s1 = end - length; in nxt_rmemstrn()
322 length--; in nxt_rmemstrn()
[all …]
H A Dnxt_sockaddr.c672 length = addr->length - 5; in nxt_sockaddr_unix_parse()
732 length = addr->length - 1; in nxt_sockaddr_inet6_parse()
743 length = addr->length; in nxt_sockaddr_inet6_parse()
752 length = (start + length) - p; in nxt_sockaddr_inet6_parse()
808 length = addr->length; in nxt_sockaddr_inet_parse()
862 length = jbs->addr.length; in nxt_job_sockaddr_parse()
915 length = jbs->addr.length - 5; in nxt_job_sockaddr_unix_parse()
986 length = jbs->addr.length - 1; in nxt_job_sockaddr_inet6_parse()
1020 length = (addr + length) - p; in nxt_job_sockaddr_inet6_parse()
1081 length = jbs->addr.length; in nxt_job_sockaddr_inet_parse()
[all …]
H A Dnxt_file_name.c24 size_t length; in nxt_file_name_create() local
34 length = 0; in nxt_file_name_create()
42 length++; in nxt_file_name_create()
57 length += v->length; in nxt_file_name_create()
68 length++; in nxt_file_name_create()
75 length += va_arg(args, u_int); in nxt_file_name_create()
98 length++; in nxt_file_name_create()
108 if (length == 0) { in nxt_file_name_create()
112 file_name->len = length - zero; in nxt_file_name_create()
114 fn = nxt_file_name_alloc(mp, length); in nxt_file_name_create()
[all …]
H A Dnxt_http_route_addr.c36 addr.length--; in nxt_http_route_addr_pattern_parse()
44 if (nxt_slow_path(addr.length < 2)) { in nxt_http_route_addr_pattern_parse()
52 port.length = addr.length - 2; in nxt_http_route_addr_pattern_parse()
70 addr.length--; in nxt_http_route_addr_pattern_parse()
72 end = addr.start + addr.length; in nxt_http_route_addr_pattern_parse()
81 port.length = end - port.start; in nxt_http_route_addr_pattern_parse()
127 addr.length = delim - addr.start; in nxt_http_route_addr_pattern_parse()
197 port.length = addr.start + addr.length - port.start; in nxt_http_route_addr_pattern_parse()
198 addr.length = delim - addr.start; in nxt_http_route_addr_pattern_parse()
235 addr.length = delim - addr.start; in nxt_http_route_addr_pattern_parse()
[all …]
H A Dnxt_errno.c40 size_t size, length, n; in nxt_strerror_start() local
76 length = nxt_strlen(msg); in nxt_strerror_start()
77 size += length; in nxt_strerror_start()
79 if (length == 0 /* HP-UX empty strings. */ in nxt_strerror_start()
90 && nxt_memcmp(msg + length - 10, " occurred.", 9) == 0) in nxt_strerror_start()
114 length = nxt_strlen(msg); in nxt_strerror_start()
116 nxt_sys_errlist[err].length = length; in nxt_strerror_start()
119 p = nxt_cpymem(p, msg, length); in nxt_strerror_start()
122 nxt_sys_errlist[err].length = 13; in nxt_strerror_start()
149 size = nxt_min(size, msg->length); in nxt_runtime_strerror()
H A Dnxt_var.c10 size_t length; member
24 uint32_t length; member
97 str->length = var->length; in nxt_var_raw()
247 end = p + str->length; in nxt_var_compile()
267 var->length = str->length; in nxt_var_compile()
315 end = p + str->length; in nxt_var_test()
352 end = start + length; in nxt_var_next_part()
416 part->length = length; in nxt_var_next_part()
575 length = var->length; in nxt_var_query_finish()
591 length += str->length - subs[j].length; in nxt_var_query_finish()
[all …]
H A Dnxt_php_sapi.c562 tmp = nxt_malloc(target->root.length + 1 + str.length + 1); in nxt_php_set_target()
599 target->script_name.length = target->script_filename.length in nxt_php_set_target()
617 target->index.length = str.length; in nxt_php_set_target()
867 size_t length; in nxt_php_dirname() local
875 length = file->length; in nxt_php_dirname()
878 length--; in nxt_php_dirname()
881 dir->length = length; in nxt_php_dirname()
898 while (str->length > 0 && str->start[str->length - 1] == t) { in nxt_php_str_trim_trail()
973 ctx->path_info.length = r->path_length - path.length; in nxt_php_dynamic_request()
989 ctx->script_filename.length = ctx->root->length in nxt_php_dynamic_request()
[all …]
H A Dnxt_pcre.c37 err->offset = source->length; in nxt_regex_compile()
39 re = nxt_mp_get(mp, sizeof(nxt_regex_t) + source->length + 1); in nxt_regex_compile()
47 nxt_memcpy(pattern, source->start, source->length); in nxt_regex_compile()
48 pattern[source->length] = '\0'; in nxt_regex_compile()
50 re->pattern.length = source->length; in nxt_regex_compile()
119 nxt_regex_match(nxt_regex_t *re, u_char *subject, size_t length, in nxt_regex_match() argument
124 ret = pcre_exec(re->code, re->extra, (const char *) subject, length, 0, 0, in nxt_regex_match()
129 ret, length, subject, &re->pattern); in nxt_regex_match()
H A Dnxt_job_resolve.c15 size_t length; in nxt_job_resolve() local
28 length = jbr->name.length + 1; in nxt_job_resolve()
30 if (nxt_fast_path(length <= NXT_BUFSIZE)) { in nxt_job_resolve()
34 host = nxt_mp_alloc(jbr->job.mem_pool, length); in nxt_job_resolve()
40 nxt_cpystrn(host, jbr->name.start, length); in nxt_job_resolve()
84 length = NXT_INET6_ADDR_STR_LEN; in nxt_job_resolve()
88 length = NXT_INET_ADDR_STR_LEN; in nxt_job_resolve()
95 sa = nxt_sockaddr_create(mp, r->ai_addr, r->ai_addrlen, length); in nxt_job_resolve()
H A Dnxt_fastcgi_record_parse.c146 fp->length = ch << 8; in nxt_fastcgi_record_parse()
151 fp->length |= ch; in nxt_fastcgi_record_parse()
163 fp->type, fp->length, fp->padding); in nxt_fastcgi_record_parse()
195 fp->length--; in nxt_fastcgi_record_parse()
197 if (fp->length != 0) { in nxt_fastcgi_record_parse()
256 if (fp->length == 0) { in nxt_fastcgi_buffer()
263 if (fp->length >= size && in->retain == 0) { in nxt_fastcgi_buffer()
286 if (fp->length < size) { in nxt_fastcgi_buffer()
287 p += fp->length; in nxt_fastcgi_buffer()
300 fp->length -= size; in nxt_fastcgi_buffer()
[all …]
H A Dnxt_http_route.c790 rule->u.name.length = name->length; in nxt_http_route_rule_name_create()
1017 test.length--; in nxt_http_route_pattern_create()
1026 test.length--; in nxt_http_route_pattern_create()
1075 test.length--; in nxt_http_route_pattern_create()
1085 tmp.length = test.length; in nxt_http_route_pattern_create()
1097 test.length -= tmp.length + 1; in nxt_http_route_pattern_create()
1126 test.length -= tmp.length; in nxt_http_route_pattern_create()
1140 tmp.length = 0; in nxt_http_route_pattern_create()
1267 slice->length = test->length; in nxt_http_route_pattern_slice()
1492 rest.length -= segments->length + 1; in nxt_http_pass_segments()
[all …]
H A Dnxt_http_static.c114 if (acf->chroot.length > 0) { in nxt_http_static_init()
315 length = shr->length + index.length; in nxt_http_static_send_ready()
365 if (chr->length > 0) { in nxt_http_static_send_ready()
456 if (chr->length > 0) { in nxt_http_static_send_ready()
540 if (mtype->length != 0) { in nxt_http_static_send_ready()
595 length = r->path->length + encode * 2 + 1; in nxt_http_static_send_ready()
597 if (r->args->length > 0) { in nxt_http_static_send_ready()
598 length += 1 + r->args->length; in nxt_http_static_send_ready()
607 field->value_length = length; in nxt_http_static_send_ready()
618 if (r->args->length > 0) { in nxt_http_static_send_ready()
[all …]
H A Dnxt_sprintf.c103 size_t length; in nxt_vsprintf() local
145 length = v->length; in nxt_vsprintf()
165 length = va_arg(args, size_t); in nxt_vsprintf()
382 length = nxt_length(nan); in nxt_vsprintf()
569 size_t length; in nxt_integer() local
655 end = buf + (spf->width - length); in nxt_integer()
665 length = (temp + NXT_INT64_T_LEN) - p; in nxt_integer()
666 end = buf + length; in nxt_integer()
681 size_t length; in nxt_number() local
705 length = (temp + NXT_DOUBLE_LEN) - p; in nxt_number()
[all …]
H A Dnxt_pcre2.c55 re->code = pcre2_compile((PCRE2_SPTR) source->start, source->length, 0, in nxt_regex_compile()
90 err->offset = source->length; in nxt_regex_compile()
133 nxt_regex_match(nxt_regex_t *re, u_char *subject, size_t length, in nxt_regex_match() argument
139 ret = pcre2_match(re->code, (PCRE2_SPTR) subject, length, 0, 0, match, in nxt_regex_match()
147 "using \"%V\"", ret, length, subject, in nxt_regex_match()
153 "using \"%V\"", errptr, ret, length, subject, in nxt_regex_match()
H A Dnxt_conn.c135 size_t size, length; in nxt_conn_local_addr() local
149 length = NXT_INET6_ADDR_STR_LEN; in nxt_conn_local_addr()
150 size = offsetof(nxt_sockaddr_t, u) + socklen + length; in nxt_conn_local_addr()
156 length = NXT_INET_ADDR_STR_LEN; in nxt_conn_local_addr()
157 size = offsetof(nxt_sockaddr_t, u) + socklen + length; in nxt_conn_local_addr()
167 sa->length = length; in nxt_conn_local_addr()
H A Dnxt_fastcgi_source.c17 u_char length[4]; member
33 if (nxt_fast_path(length < 128)) { in nxt_fastcgi_param_length()
34 *p = (u_char) length; in nxt_fastcgi_param_length()
38 p[3] = (u_char) length; length >>= 8; in nxt_fastcgi_param_length()
39 p[2] = (u_char) length; length >>= 8; in nxt_fastcgi_param_length()
40 p[1] = (u_char) length; length >>= 8; in nxt_fastcgi_param_length()
41 p[0] = (u_char) (length | 0x80); in nxt_fastcgi_param_length()
356 param->buf = param->length; in nxt_fastcgi_next_param()
363 param->buf = param->length; in nxt_fastcgi_next_param()
639 nxt_off_t length; in nxt_fastcgi_source_content_length() local
[all …]
/unit/docs/
H A Dchanges.xsls44 !{$conf/rpm/length}
47 !{$conf/deb/length}
50 !{$conf/generic/length}
163 X:var length = {
166 length = "$max")
181 X:template length(text, prefix, length) {
183 $length - $prefix + string-length($br)),
191 X:when "string-length($text) + $prefix &lt;= $length" {
192 !{$length - $prefix}
196 !{$length - $prefix + 1}
[all …]
H A Dchange_log_conf.dtd3 <!ELEMENT generic (length, start, indent?) >
4 <!ELEMENT rpm (length, start, indent?) >
5 <!ELEMENT deb (length, start, indent?) >
7 <!ELEMENT length (#PCDATA) > element
11 <!ELEMENT changes (title, length,
/unit/test/python/body_generate/
H A Dwsgi.py2 length = env.get('HTTP_X_LENGTH', '10')
3 bytes = b'X' * int(length)
5 start_response('200', [('Content-Length', length)])
/unit/test/unit/applications/
H A Dwebsockets.py103 length = head2 & 0b01111111
104 if length == 126:
106 (length,) = struct.unpack('!H', data)
107 elif length == 127:
109 (length,) = struct.unpack('!Q', data)
116 if length != 0:
117 data = recv_bytes(sock, length)
123 if length >= 2:
130 elif length == 0:
148 length=None, argument
[all …]
/unit/src/java/nginx/unit/websocket/server/
H A DUriTemplate.java46 if (path == null || path.length() ==0 || !path.startsWith("/")) { in UriTemplate()
51 StringBuilder normalized = new StringBuilder(path.length()); in UriTemplate()
59 for (int i = 0; i < segments.length; i++) { in UriTemplate()
61 if (segment.length() == 0) { in UriTemplate()
62 if (i == 0 || (i == segments.length - 1 && paramCount == 0)) { in UriTemplate()
79 segment = segment.substring(1, segment.length() - 1); in UriTemplate()
/unit/src/test/
H A Dnxt_base64_test.c73 ret = nxt_base64_decode(NULL, tests[i].enc.start, tests[i].enc.length); in nxt_base64_test()
79 if ((size_t) ret != tests[i].dec.length) { in nxt_base64_test()
83 &tests[i].enc, ret, tests[i].dec.length); in nxt_base64_test()
87 ret = nxt_base64_decode(buf, tests[i].enc.start, tests[i].enc.length); in nxt_base64_test()
/unit/src/nodejs/unit-http/
H A Dhttp_server.js66 count = value.length;
106 for (var i = 0; i < keys.length; i++) {
140 this.headers_count -= value.length;
141 this.headers_len -= value.length * name_len;
197 for (var i = 0; i < keys.length; i++) {
256 contentLength = chunk.length;
260 contentLength = chunk.length;
447 if (typeof args[args.length - 1] === 'function') {
487 if (this._output.length <= 0) {
491 while (this._output.length > 0) {
[all …]

12345