Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 112) sorted by path

12345

/unit/auto/modules/
H A Dpython144 if len(p) > 0:
154 if len(p) > 0:
/unit/go/
H A Dnxt_cgo_lib.c70 uint32_t len) in nxt_cgo_response_write() argument
72 return nxt_unit_response_write_nb(req, (void *) start, len, 0); in nxt_cgo_response_write()
H A Dnxt_cgo_lib.h24 uintptr_t src, uint32_t len);
/unit/src/java/nginx/unit/
H A DIncludeResponseWrapper.java95 public void setContentLength(int len) in setContentLength() argument
97 trace("setContentLength: " + len); in setContentLength()
101 public void setContentLengthLong(long len) in setContentLengthLong() argument
103 trace("setContentLengthLong: " + len); in setContentLengthLong()
H A DInputStream.java18 public int readLine(byte[] b, int off, int len) throws IOException { in readLine() argument
20 if (len <= 0) { in readLine()
23 return readLine(req_info_ptr, b, off, len); in readLine()
26 private static native int readLine(long req_info_ptr, byte[] b, int off, int len); in readLine() argument
61 public int read(byte b[], int off, int len) throws IOException { in read() argument
64 } else if (off < 0 || len < 0 || len > b.length - off) { in read()
66 } else if (len == 0) { in read()
70 return read(req_info_ptr, b, off, len); in read()
73 private static native int read(long req_info_ptr, byte b[], int off, int len); in read() argument
H A DOutputStream.java26 public void write(byte b[], int off, int len) throws IOException in write() argument
30 } else if ((off < 0) || (off > b.length) || (len < 0) || in write()
31 ((off + len) > b.length) || ((off + len) < 0)) { in write()
33 } else if (len == 0) { in write()
37 write(req_info_ptr, b, off, len); in write()
40 private static native void write(long req_info_ptr, byte b[], int off, int len); in write() argument
H A DRequest.java1319 ByteBuffer buf, int pos, int len, byte opCode, boolean last); in sendWsFrame() argument
1322 byte[] arr, int pos, int len, byte opCode, boolean last); in sendWsFrame() argument
H A DResponse.java730 public void setContentLength(int len) in setContentLength() argument
732 trace("setContentLength: " + len); in setContentLength()
738 setContentLength(req_info_ptr, len); in setContentLength()
742 public void setContentLengthLong(long len) in setContentLengthLong() argument
744 trace("setContentLengthLong: " + len); in setContentLengthLong()
750 setContentLength(req_info_ptr, len); in setContentLengthLong()
753 private static native void setContentLength(long req_info_ptr, long len); in setContentLength() argument
/unit/src/java/nginx/unit/websocket/
H A DUtil.java510 int len = value.length(); in parseExtensionHeader() local
511 if (len > 1) { in parseExtensionHeader()
512 if (value.charAt(0) == '\"' && value.charAt(len - 1) == '\"') { in parseExtensionHeader()
H A DWsFrameBase.java666 protected static long byteArrayToLong(byte[] b, int start, int len) throws IOException { in byteArrayToLong() argument
667 if (len > 8) { in byteArrayToLong()
668 throw new IOException(sm.getString("wsFrame.byteToLongFail", Long.valueOf(len))); in byteArrayToLong()
672 for (int i = start + len - 1; i >= start; i--) { in byteArrayToLong()
H A DWsRemoteEndpointImplBase.java952 public void write(byte[] b, int off, int len) throws IOException { in write() argument
957 if (len == 0) { in write()
960 if ((off < 0) || (off > b.length) || (len < 0) || in write()
961 ((off + len) > b.length) || ((off + len) < 0)) { in write()
972 while (remaining < len - written) { in write()
978 buffer.put(b, off + written, len - written); in write()
1036 if (len == 0) { in write()
1039 if ((off < 0) || (off > cbuf.length) || (len < 0) || in write()
1040 ((off + len) > cbuf.length) || ((off + len) < 0)) { in write()
1051 while (remaining < len - written) { in write()
[all …]
/unit/src/java/
H A Dnxt_jni.c129 nxt_java_strcaseeq(const char *str1, const char *str2, int len) in nxt_java_strcaseeq() argument
134 end1 = str1 + len; in nxt_java_strcaseeq()
157 nxt_java_newString(JNIEnv *env, char *str, uint32_t len) in nxt_java_newString() argument
162 tmp = str[len]; in nxt_java_newString()
165 str[len] = '\0'; in nxt_java_newString()
171 str[len] = tmp; in nxt_java_newString()
H A Dnxt_jni.h25 int nxt_java_strcaseeq(const char *str1, const char *str2, int len);
27 jstring nxt_java_newString(JNIEnv *env, char *str, uint32_t len);
H A Dnxt_jni_InputStream.c18 jlong req_info_ptr, jarray b, jint off, jint len);
24 jlong req_info_ptr, jarray b, jint off, jint len);
91 jlong req_info_ptr, jarray out, jint off, jint len) in nxt_java_InputStream_readLine() argument
101 res = nxt_unit_request_readline_size(req, len); in nxt_java_InputStream_readLine()
143 jarray b, jint off, jint len) in nxt_java_InputStream_read() argument
153 res = nxt_unit_request_read(req, data + off, len); in nxt_java_InputStream_read()
H A Dnxt_jni_OutputStream.c21 jlong req_info_ptr, jarray b, jint off, jint len);
176 jarray b, jint off, jint len) in nxt_java_OutputStream_write() argument
190 while (len > 0) { in nxt_java_OutputStream_write()
197 copy = copy < len ? copy : len; in nxt_java_OutputStream_write()
202 len -= copy; in nxt_java_OutputStream_write()
H A Dnxt_jni_Request.c72 jlong req_info_ptr, jobject buf, jint pos, jint len, jbyte opCode, jboolean last);
74 jlong req_info_ptr, jarray arr, jint pos, jint len, jbyte opCode, jboolean last);
754 jlong req_info_ptr, jobject buf, jint pos, jint len, jbyte opCode, jboolean last) in nxt_java_Request_sendWsFrameBuf() argument
762 nxt_unit_websocket_send(req, opCode, last, b + pos, len); in nxt_java_Request_sendWsFrameBuf()
772 jlong req_info_ptr, jarray arr, jint pos, jint len, jbyte opCode, jboolean last) in nxt_java_Request_sendWsFrameArr() argument
784 nxt_unit_websocket_send(req, opCode, last, b + pos, len); in nxt_java_Request_sendWsFrameArr()
H A Dnxt_jni_Response.c98 jlong req_info_ptr, jlong len);
1011 jlong len) in nxt_java_Response_setContentLength() argument
1020 req->response->content_length = len; in nxt_java_Response_setContentLength()
/unit/src/nodejs/unit-http/
H A Dnxt_napi.h75 create_function(const char *name, size_t len, napi_callback cb, void *data) in create_function()
80 status = napi_create_function(env_, name, len, cb, data, &res); in create_function()
127 create_string_latin1(const char *str, size_t len) in create_string_latin1()
132 status = napi_create_string_latin1(env_, str, len, &res); in create_string_latin1()
142 create_string_latin1(nxt_unit_sptr_t &str, size_t len) in create_string_latin1()
148 return create_string_latin1(p, len); in create_string_latin1()
583 size_t len) in set_named_property()
587 str = create_string_latin1(val, len); in set_named_property()
H A Dwebsocket_router.js106 for (var i=0, len=this.handlers.length; i < len; i++) {
139 for (var j=0, len=this.handlers.length; j < len; j++) {
/unit/src/
H A Dnxt_application.c897 size_t len; in nxt_cstr_dup() local
899 len = nxt_strlen(src); in nxt_cstr_dup()
902 dst = nxt_mp_alloc(mp, len + 1); in nxt_cstr_dup()
908 p = nxt_cpymem(dst, src, len); in nxt_cstr_dup()
H A Dnxt_cache.c141 lhq.key.len = q->key_len; in nxt_cache_query()
425 lhq.key.len = node->key_len; in nxt_cache_update()
H A Dnxt_cert.c654 int len; in nxt_cert_name_details() local
714 len = X509_NAME_get_text_by_NID(x509_name, nids[n].nid, in nxt_cert_name_details()
721 if (len < 0) { in nxt_cert_name_details()
725 str.length = len; in nxt_cert_name_details()
H A Dnxt_clone.c87 int len, mapfd; in nxt_clone_credential_map_write() local
108 len = nxt_strlen(mapinfo); in nxt_clone_credential_map_write()
110 n = write(mapfd, (char *)mapinfo, len); in nxt_clone_credential_map_write()
111 if (nxt_slow_path(n != len)) { in nxt_clone_credential_map_write()
139 nxt_int_t ret, len; in nxt_clone_credential_map_set() local
146 len = sizeof(u_char) * (10 + 10 + 10 + 2 + 1); in nxt_clone_credential_map_set()
149 len = len * map->size + 1; in nxt_clone_credential_map_set()
151 mapinfo = nxt_malloc(len); in nxt_clone_credential_map_set()
157 end = mapinfo + len; in nxt_clone_credential_map_set()
178 mapinfo = nxt_malloc(len); in nxt_clone_credential_map_set()
[all …]
H A Dnxt_conf.c2307 size_t len; in nxt_conf_json_array_length() local
2314 len = 2; in nxt_conf_json_array_length()
2341 return len + n; in nxt_conf_json_array_length()
2409 len = 2; in nxt_conf_json_object_length()
2434 len += pretty->level + 2; in nxt_conf_json_object_length()
2437 return len; in nxt_conf_json_object_length()
2517 size_t len; in nxt_conf_json_escape_length() local
2519 len = size; in nxt_conf_json_escape_length()
2525 len++; in nxt_conf_json_escape_length()
2535 len++; in nxt_conf_json_escape_length()
[all …]
H A Dnxt_djb_hash.c11 nxt_djb_hash(const void *data, size_t len) in nxt_djb_hash() argument
19 while (len != 0) { in nxt_djb_hash()
21 len--; in nxt_djb_hash()
29 nxt_djb_hash_lowcase(const void *data, size_t len) in nxt_djb_hash_lowcase() argument
38 while (len != 0) { in nxt_djb_hash_lowcase()
41 len--; in nxt_djb_hash_lowcase()

12345