Lines Matching refs:len
364 * proceeds. It will read at most *len bytes.
368 char *c, apr_size_t *len)
414 consume = (str_len + actual > *len) ? *len - actual : str_len;
435 /* This could probably be actual == *len, but be safe from stray
437 if (actual >= *len) {
442 *len = actual;
593 apr_size_t *len)
595 apr_size_t wanted = *len;
599 *len = 0;
603 *len = bytes;
614 /* This could probably be *len == wanted, but be safe from stray
617 if (*len >= wanted) {
621 if (memchr(buf, APR_ASCII_LF, *len)) {
649 *len += rc;
666 if (*len > 0) {
675 if (*len > 0) {
699 if (*len > 0) {
712 if (*len > 0) {
745 * length *LEN; updating *len to reflect the length of the line
749 apr_size_t *len)
753 apr_size_t tmplen = *len, buflen = *len, offset = 0;
755 *len = 0;
767 if (APR_STATUS_IS_EAGAIN(status) && (*len > 0)) {
769 char_buffer_write(&inctx->cbuf, buf, *len);
774 *len += tmplen;
776 if ((pos = memchr(buf, APR_ASCII_LF, *len))) {
791 length = *len - bytes;
795 *len = bytes;
804 apr_size_t len)
816 res = SSL_write(filter_ctx->pssl, (unsigned char *)data, len);
863 else if ((apr_size_t)res != len) {
875 len - (apr_size_t)res, len, reason);
1384 apr_size_t len = sizeof(inctx->buffer); /* length of block to return */
1437 if (readbytes < len) {
1438 len = (apr_size_t)readbytes;
1440 status = ssl_io_input_read(inctx, inctx->buffer, &len);
1452 len = 1 + pos - start; /* +1 to include LF */
1454 inctx->cbuf.value += len;
1455 inctx->cbuf.length -= len;
1460 status = ssl_io_input_getline(inctx, inctx->buffer, &len);
1481 if (len > 0) {
1483 apr_bucket_transient_create(start, len, f->c->bucket_alloc);
1631 apr_size_t len;
1648 rv = apr_bucket_read(e, &data, &len, APR_BLOCK_READ);
1656 if (len > sizeof ctx->buffer
1657 || (len + ctx->bytes > sizeof ctx->buffer)) {
1663 memcpy(ctx->buffer + ctx->bytes, data, len);
1664 ctx->bytes += len;
1771 apr_size_t len;
1773 status = apr_bucket_read(bucket, &data, &len, rblock);
1791 status = ssl_filter_write(f, data, len);
1849 apr_size_t len;
1856 rv = apr_bucket_read(e, &data, &len, APR_BLOCK_READ);
1862 total += len;
2101 const char *b, long len)
2109 for(; (len > 0) && ((b[len-1] == ' ') || (b[len-1] == '\0')); len--)
2111 rows = (len / DUMP_WIDTH);
2112 if ((rows * DUMP_WIDTH) < len)
2120 if ((i * DUMP_WIDTH + j) > len)
2121 j = len % DUMP_WIDTH;
2130 if (((i * DUMP_WIDTH) + j) >= len)
2140 if (((i * DUMP_WIDTH) + j) >= len)
2157 "| %04ld - <SPACES/NULS>", len + trunc);