Lines Matching refs:howmuch
150 ev_ssize_t howmuch);
2033 _evbuffer_read_setup_vecs(struct evbuffer *buf, ev_ssize_t howmuch, in _evbuffer_read_setup_vecs() argument
2043 if (howmuch < 0) in _evbuffer_read_setup_vecs()
2054 for (i = 0; i < n_vecs_avail && so_far < (size_t)howmuch; ++i) { in _evbuffer_read_setup_vecs()
2056 if (avail > (howmuch - so_far) && exact) in _evbuffer_read_setup_vecs()
2057 avail = howmuch - so_far; in _evbuffer_read_setup_vecs()
2090 evbuffer_read(struct evbuffer *buf, evutil_socket_t fd, int howmuch) in evbuffer_read() argument
2113 if (howmuch < 0 || howmuch > n) in evbuffer_read()
2114 howmuch = n; in evbuffer_read()
2119 if (_evbuffer_expand_fast(buf, howmuch, NUM_READ_IOVEC) == -1) { in evbuffer_read()
2125 nvecs = _evbuffer_read_setup_vecs(buf, howmuch, vecs, in evbuffer_read()
2131 nvecs = _evbuffer_read_setup_vecs(buf, howmuch, ev_vecs, 2, in evbuffer_read()
2161 if ((chain = evbuffer_expand_singlechain(buf, howmuch)) == NULL) { in evbuffer_read()
2170 n = read(fd, p, howmuch); in evbuffer_read()
2172 n = recv(fd, p, howmuch, 0); in evbuffer_read()
2222 evbuffer_readfile(struct evbuffer *buf, evutil_socket_t fd, ev_ssize_t howmuch) in evbuffer_readfile() argument
2235 if (howmuch < 0) in evbuffer_readfile()
2236 howmuch = 16384; in evbuffer_readfile()
2241 nchains = evbuffer_reserve_space(buf, howmuch, v, 2); in evbuffer_readfile()
2273 ev_ssize_t howmuch) in evbuffer_write_iovec() argument
2279 if (howmuch < 0) in evbuffer_write_iovec()
2286 while (chain != NULL && i < NUM_WRITE_IOVEC && howmuch) { in evbuffer_write_iovec()
2293 if ((size_t)howmuch >= chain->off) { in evbuffer_write_iovec()
2296 howmuch -= chain->off; in evbuffer_write_iovec()
2299 iov[i++].IOV_LEN_FIELD = (IOV_LEN_TYPE)howmuch; in evbuffer_write_iovec()
2324 ev_ssize_t howmuch) in evbuffer_write_sendfile() argument
2378 ev_ssize_t howmuch) in evbuffer_write_atmost() argument
2388 if (howmuch < 0 || (size_t)howmuch > buffer->total_len) in evbuffer_write_atmost()
2389 howmuch = buffer->total_len; in evbuffer_write_atmost()
2391 if (howmuch > 0) { in evbuffer_write_atmost()
2395 n = evbuffer_write_sendfile(buffer, fd, howmuch); in evbuffer_write_atmost()
2399 n = evbuffer_write_iovec(buffer, fd, howmuch); in evbuffer_write_atmost()
2403 void *p = evbuffer_pullup(buffer, howmuch); in evbuffer_write_atmost()
2404 EVUTIL_ASSERT(p || !howmuch); in evbuffer_write_atmost()
2405 n = send(fd, p, howmuch, 0); in evbuffer_write_atmost()
2407 void *p = evbuffer_pullup(buffer, howmuch); in evbuffer_write_atmost()
2408 EVUTIL_ASSERT(p || !howmuch); in evbuffer_write_atmost()
2409 n = write(fd, p, howmuch); in evbuffer_write_atmost()