Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 17 of 17) sorted by relevance

/unit/src/
H A Dnxt_job_file.c98 if (jbf->buffer != NULL) { in nxt_job_file_open_and_read()
112 if (jbf->buffer != NULL) { in nxt_job_file_open_and_read()
114 if (nxt_buf_is_mmap(jbf->buffer)) { in nxt_job_file_open_and_read()
249 jbf->buffer->mem.pos = p; in nxt_job_file_mmap()
250 jbf->buffer->mem.free = end; in nxt_job_file_mmap()
251 jbf->buffer->mem.start = p; in nxt_job_file_mmap()
252 jbf->buffer->mem.end = end; in nxt_job_file_mmap()
253 jbf->buffer->file_end += size; in nxt_job_file_mmap()
284 jbf->buffer->mem.free += n; in nxt_job_file_read_data()
287 if (nxt_buf_is_file(jbf->buffer)) { in nxt_job_file_read_data()
[all …]
H A Dnxt_sha1.c43 memcpy(&ctx->buffer[used], data, size); in nxt_sha1_update()
47 memcpy(&ctx->buffer[used], data, free); in nxt_sha1_update()
50 (void) nxt_sha1_body(ctx, ctx->buffer, 64); in nxt_sha1_update()
58 memcpy(ctx->buffer, data, size); in nxt_sha1_update()
69 ctx->buffer[used++] = 0x80; in nxt_sha1_final()
74 nxt_memzero(&ctx->buffer[used], free); in nxt_sha1_final()
80 nxt_memzero(&ctx->buffer[used], free - 8); in nxt_sha1_final()
83 ctx->buffer[56] = (u_char) (ctx->bytes >> 56); in nxt_sha1_final()
89 ctx->buffer[62] = (u_char) (ctx->bytes >> 8); in nxt_sha1_final()
90 ctx->buffer[63] = (u_char) ctx->bytes; in nxt_sha1_final()
[all …]
H A Dnxt_sha1.h15 u_char buffer[64]; member
H A Dnxt_job_file.h52 nxt_buf_t *buffer; member
H A Dnxt_buf_filter.c264 if (ff->job_file.buffer != NULL) { in nxt_buf_filter_file_read()
295 ff->job_file.buffer = b; in nxt_buf_filter_file_read()
342 b = jbf->buffer; in nxt_buf_filter_file_job_completion()
343 jbf->buffer = NULL; in nxt_buf_filter_file_job_completion()
H A Dnxt_cyassl.c18 nxt_buf_mem_t buffer; member
191 nxt_buf_mem_set_size(&ssltls->buffer, conf->buffer_size); in nxt_cyassl_conn_init()
236 nxt_free(ssltls->buffer.start); in nxt_cyassl_session_cleanup()
404 return nxt_sendbuf_copy_coalesce(c, &ssltls->buffer, b, limit); in nxt_cyassl_conn_io_write_chunk()
H A Dnxt_gnutls.c17 nxt_buf_mem_t buffer; member
271 nxt_buf_mem_set_size(&ssltls->buffer, conf->buffer_size); in nxt_gnutls_conn_init()
345 nxt_free(ssltls->buffer.start); in nxt_gnutls_session_cleanup()
535 return nxt_sendbuf_copy_coalesce(c, &ssltls->buffer, b, limit); in nxt_gnutls_conn_io_write_chunk()
H A Dnxt_php_sapi.c137 static size_t nxt_php_read_post(char *buffer, size_t count_bytes TSRMLS_DC);
140 static int nxt_php_read_post(char *buffer, uint count_bytes TSRMLS_DC);
1339 nxt_php_read_post(char *buffer, size_t count_bytes TSRMLS_DC) argument
1342 nxt_php_read_post(char *buffer, uint count_bytes TSRMLS_DC)
1351 return nxt_unit_request_read(ctx->req, buffer, count_bytes);
H A Dnxt_openssl.c30 nxt_buf_mem_t buffer; member
1176 nxt_buf_mem_set_size(&tls->buffer, conf->buffer_size);
1231 nxt_free(tls->buffer.start);
/unit/test/java/mirror/
H A Dapp.java18 StringBuilder buffer = new StringBuilder(); in doPost() local
23 buffer.append(line); in doPost()
26 String data = buffer.toString(); in doPost()
/unit/src/nodejs/unit-http/
H A Dutils.js47 this.buffer = [];
51 this.buffer.push([ new Date(), Array.prototype.slice.call(arguments) ]);
56 this.buffer = [];
63 this.buffer.forEach(function(entry) {
H A Dunit.cpp708 napi_value constructor, res, buffer; in create_websocket_frame() local
731 buffer = create_buffer((size_t) ws->content_length, &data); in create_websocket_frame()
734 set_named_property(res, "binaryPayload", buffer); in create_websocket_frame()
746 napi_value this_arg, argv, buffer; in request_read() local
769 buffer = napi.create_buffer((size_t) wm, &data); in request_read()
777 return buffer; in request_read()
/unit/src/java/nginx/unit/websocket/
H A DWsRemoteEndpointImplBase.java751 private final ByteBuffer buffer; field in WsRemoteEndpointImplBase.TextMessageSendHandler
762 this.buffer = encoderBuffer; in TextMessageSendHandler()
767 buffer.clear(); in write()
773 buffer.flip(); in write()
945 if (buffer.remaining() == 0) { in write()
948 buffer.put((byte) b); in write()
966 if (buffer.remaining() == 0) { in write()
1009 buffer.flip(); in doWrite()
1013 buffer.clear(); in doWrite()
1086 buffer.flip(); in doWrite()
[all …]
H A DLocalStrings.properties26 …ure.readOverflow=Buffer overflow. [{0}] bytes to write into a [{1}] byte buffer that already conta…
57 wsFrame.bufferTooSmall=No async message support and buffer too small. Buffer size: [{0}], Message s…
75 wsFrame.textMessageTooBig=The decoded text message was too big for the output buffer and the endpoi…
129 wsWebSocketContainer.maxBuffer=This implementation limits the maximum size of a buffer to Integer.M…
/unit/src/java/nginx/unit/websocket/server/
H A DLocalStrings.properties34 wsFrameServer.bytesRead=Read [{0}] bytes into input buffer ready for processing
/unit/src/java/nginx/unit/
H A DContext.java324 byte[] buffer = new byte[response.getBufferSize()]; in doGet()
327 int read = is.read(buffer); in doGet()
331 os.write(buffer, 0, read); in doGet()
/unit/
H A DCHANGES635 *) Security: a heap memory buffer overflow might have been caused in the