Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 26) sorted by path

12

/unit/
H A DCHANGES938 *) Bugfix: header fields values with non-ASCII bytes might be handled
/unit/docs/
H A Dunit-openapi.yaml5566 description: "Stack size of a worker thread in bytes."
5588 description: "Stack size of a worker thread in bytes."
5740 description: "Stack size of a worker thread in bytes."
6191 description: "Maximum number of bytes in the body of a
/unit/src/java/javax/websocket/
H A DDecoder.java32 T decode(ByteBuffer bytes) throws DecodeException; in decode() argument
34 boolean willDecode(ByteBuffer bytes); in willDecode() argument
/unit/src/java/nginx/unit/websocket/
H A DLocalStrings.properties26 …re.readOverflow=Buffer overflow. [{0}] bytes to write into a [{1}] byte buffer that already contai…
52 # frames and therefore must be 123 bytes (not characters) or less in length.
54 # as many as 4 bytes.
58 wsFrame.byteToLongFail=Too many bytes ([{0}]) were provided to be converted into a long
61 …frame was sent with a payload of size [{0}] which is larger than the maximum permitted of 125 bytes
68 wsFrame.messageTooBig=The message was [{0}] bytes long but the MessageHandler has a limit of [{1}]
96 wsRemoteEndpoint.tooMuchData=Ping or pong may not send more than 125 bytes
100 # frame and therefore must be 123 bytes (not characters) or less in length.
102 # as many as 4 bytes.
122 # frame and therefore must be 123 bytes (not characters) or less in length.
[all …]
H A DWsWebSocketContainer.java577 byte[] bytes = request.toString().getBytes(StandardCharsets.ISO_8859_1); in createProxyRequest()
578 return ByteBuffer.wrap(bytes); in createProxyRequest()
762 private static ByteBuffer putWithExpand(ByteBuffer input, byte[] bytes) { in putWithExpand() argument
763 if (bytes.length > input.remaining()) { in putWithExpand()
765 if (bytes.length > input.capacity()) { in putWithExpand()
766 newSize = 2 * bytes.length; in putWithExpand()
775 return input.put(bytes); in putWithExpand()
/unit/src/java/nginx/unit/websocket/server/
H A DLocalStrings.properties34 wsFrameServer.bytesRead=Read [{0}] bytes into input buffer ready for processing
/unit/src/
H A Dnxt_http_variables.c434 nxt_off_t bytes; in nxt_http_var_body_bytes_sent() local
444 bytes = nxt_http_proto[r->protocol].body_bytes_sent(task, r->proto); in nxt_http_var_body_bytes_sent()
446 p = nxt_sprintf(str->start, str->start + NXT_OFF_T_LEN, "%O", bytes); in nxt_http_var_body_bytes_sent()
H A Dnxt_random.c58 u_char bytes[NXT_RANDOM_KEY_SIZE]; in nxt_random_stir() member
105 nxt_random_add(r, key.bytes, NXT_RANDOM_KEY_SIZE); in nxt_random_stir()
H A Dnxt_sha1.c27 ctx->bytes = 0; in nxt_sha1_init()
36 used = (size_t) (ctx->bytes & 0x3f); in nxt_sha1_update()
37 ctx->bytes += size; in nxt_sha1_update()
67 used = (size_t) (ctx->bytes & 0x3f); in nxt_sha1_final()
82 ctx->bytes <<= 3; in nxt_sha1_final()
83 ctx->buffer[56] = (u_char) (ctx->bytes >> 56); in nxt_sha1_final()
84 ctx->buffer[57] = (u_char) (ctx->bytes >> 48); in nxt_sha1_final()
85 ctx->buffer[58] = (u_char) (ctx->bytes >> 40); in nxt_sha1_final()
86 ctx->buffer[59] = (u_char) (ctx->bytes >> 32); in nxt_sha1_final()
89 ctx->buffer[62] = (u_char) (ctx->bytes >> 8); in nxt_sha1_final()
[all …]
H A Dnxt_sha1.h13 uint64_t bytes; member
/unit/src/python/
H A Dnxt_python_asgi_websocket.c421 PyObject *bytes, *text; in nxt_py_asgi_websocket_send_frame() local
443 bytes = PyDict_GetItem(dict, nxt_py_bytes_str); in nxt_py_asgi_websocket_send_frame()
444 if (bytes == Py_None) { in nxt_py_asgi_websocket_send_frame()
445 bytes = NULL; in nxt_py_asgi_websocket_send_frame()
448 if (nxt_slow_path(bytes != NULL && !PyBytes_Check(bytes))) { in nxt_py_asgi_websocket_send_frame()
463 if (nxt_slow_path(((bytes != NULL) ^ (text != NULL)) == 0)) { in nxt_py_asgi_websocket_send_frame()
468 if (bytes != NULL) { in nxt_py_asgi_websocket_send_frame()
469 buf = PyBytes_AS_STRING(bytes); in nxt_py_asgi_websocket_send_frame()
470 buf_size = PyBytes_GET_SIZE(bytes); in nxt_py_asgi_websocket_send_frame()
H A Dnxt_python_wsgi.c83 PyObject **bytes);
97 static int nxt_python_write(nxt_python_ctx_t *pctx, PyObject *bytes);
1129 nxt_python_str_buf(PyObject *str, char **buf, uint32_t *len, PyObject **bytes) in nxt_python_str_buf() argument
1134 *bytes = NULL; in nxt_python_str_buf()
1137 *bytes = PyUnicode_AsLatin1String(str); in nxt_python_str_buf()
1138 if (nxt_slow_path(*bytes == NULL)) { in nxt_python_str_buf()
1142 *buf = PyBytes_AS_STRING(*bytes); in nxt_python_str_buf()
1143 *len = PyBytes_GET_SIZE(*bytes); in nxt_python_str_buf()
1380 nxt_python_write(nxt_python_ctx_t *pctx, PyObject *bytes) in nxt_python_write() argument
1386 str_buf = PyBytes_AS_STRING(bytes); in nxt_python_write()
[all …]
/unit/src/wasm-wasi-component/
H A DCargo.lock151 name = "bytes"
581 "bytes",
639 "bytes",
650 "bytes",
660 "bytes",
685 "bytes",
1375 "bytes",
1400 "bytes",
1623 "bytes",
1904 "bytes",
[all …]
H A DCargo.toml12 bytes = "1.5.0"
/unit/src/wasm-wasi-component/src/
H A Dlib.rs2 use bytes::{Bytes, BytesMut};
/unit/test/java/multipart/
H A Dapp.java53 final byte[] bytes = new byte[1024]; in doPost()
55 while ((read = filecontent.read(bytes)) != -1) { in doPost()
56 out.write(bytes, 0, read); in doPost()
/unit/test/python/chunked/
H A Dwsgi.py4 body = bytes(environ['wsgi.input'].read(content_length))
/unit/test/python/ctx_iter_atexit/
H A Dwsgi.py13 body = bytes(self.environ['wsgi.input'].read(content_length))
/unit/test/python/delayed/
H A Dwsgi.py9 body = bytes(environ['wsgi.input'].read(content_length))
/unit/test/python/input_read_length/
H A Dwsgi.py4 body = bytes(environ['wsgi.input'].read(input_length))
/unit/test/python/log_body/
H A Dwsgi.py3 body = bytes(environ['wsgi.input'].read(content_length))
/unit/test/python/mirror/
H A Dwsgi.py4 body = bytes(environ['wsgi.input'].read(content_length))
/unit/test/python/upload/
H A Dwsgi.py9 body.write(bytes(environ['wsgi.input'].read(length)))
/unit/test/python/variables/
H A Dwsgi.py4 body = bytes(environ['wsgi.input'].read(content_length))
/unit/test/unit/applications/
H A Dwebsockets.py26 raw_key = bytes(random.getrandbits(8) for _ in range(16))
67 return bytes(b ^ m for b, m in zip(data, itertools.cycle(mask)))

12