Lines Matching defs:buffer

93  * malloc-ed buffer, rather than copying into a mem BIO.
117 apr_bucket_brigade *bb; /* Brigade used as a buffer. */
316 char buffer[AP_IOBUFSIZE];
329 * char_buffer object is used to cache a segment of inctx->buffer, and
331 * beginning of inctx->buffer. So the segments to copy cannot be
333 static int char_buffer_read(char_buffer_t *buffer, char *in, int inl)
335 if (!buffer->length) {
339 if (buffer->length > inl) {
340 /* we have have enough to fill the caller's buffer */
341 memmove(in, buffer->value, inl);
342 buffer->value += inl;
343 buffer->length -= inl;
346 /* swallow remainder of the buffer */
347 memmove(in, buffer->value, buffer->length);
348 inl = buffer->length;
349 buffer->value = NULL;
350 buffer->length = 0;
356 static int char_buffer_write(char_buffer_t *buffer, char *in, int inl)
358 buffer->value = in;
359 buffer->length = inl;
392 * this sort of case (caller provided buffer) it
744 /* Read a line of input from the SSL input layer into buffer BUF of
1383 const char *start = inctx->buffer; /* start of block to return */
1384 apr_size_t len = sizeof(inctx->buffer); /* length of block to return */
1440 status = ssl_io_input_read(inctx, inctx->buffer, &len);
1445 /* Satisfy the read directly out of the buffer if possible;
1446 * invoking ssl_io_input_getline will mean the entire buffer
1460 status = ssl_io_input_getline(inctx, inctx->buffer, &len);
1567 char buffer[COALESCE_BYTES];
1568 apr_size_t bytes; /* number of bytes of buffer used. */
1586 * size which fits into the buffer.
1627 * normal path of sending the buffer + remaining buckets in
1656 if (len > sizeof ctx->buffer
1657 || (len + ctx->bytes > sizeof ctx->buffer)) {
1663 memcpy(ctx->buffer + ctx->bytes, data, len);
1687 e = apr_bucket_transient_create(ctx->buffer, ctx->bytes, bb->bucket_alloc);
1689 ctx->bytes = 0; /* buffer now emptied. */
1824 ap_log_cerror(APLOG_MARK, APLOG_TRACE4, 0, c, "filling buffer, max size "
1840 "could not read request body for SSL buffer");
1859 "could not read bucket for SSL buffer");
1868 "could not setaside bucket for SSL buffer");
1877 "total of %" APR_OFF_T_FMT " bytes in buffer, eos=%d",
1880 /* Fail if this exceeds the maximum buffer size. */
1884 ") for SSL buffer", maxlen);
2185 dump = "(Oops, no memory buffer?)";