Home
last modified time | relevance | path

Searched refs:EVBUFFER_LENGTH (Results 1 – 9 of 9) sorted by relevance

/external/chromium/third_party/libevent/
Devent_tagging.c149 int len = EVBUFFER_LENGTH(evbuf); in decode_tag_internal()
200 evbuffer_drain(_buf, EVBUFFER_LENGTH(_buf)); in evtag_marshal_int()
204 encode_int(evbuf, EVBUFFER_LENGTH(_buf)); in evtag_marshal_int()
217 evbuffer_drain(_buf, EVBUFFER_LENGTH(_buf)); in evtag_marshal_timeval()
223 EVBUFFER_LENGTH(_buf)); in evtag_marshal_timeval()
231 int len = EVBUFFER_LENGTH(evbuf); in decode_int_internal()
342 if (EVBUFFER_LENGTH(src) < len) in evtag_unmarshal()
371 if (EVBUFFER_LENGTH(evbuf) < len) in evtag_unmarshal_int()
374 evbuffer_drain(_buf, EVBUFFER_LENGTH(_buf)); in evtag_unmarshal_int()
392 evbuffer_drain(_buf, EVBUFFER_LENGTH(_buf)); in evtag_unmarshal_fixed()
[all …]
Devbuffer.c111 howmuch = bufev->wm_read.high - EVBUFFER_LENGTH(bufev->input); in bufferevent_readcb()
139 len = EVBUFFER_LENGTH(bufev->input); in bufferevent_readcb()
175 if (EVBUFFER_LENGTH(bufev->output)) { in bufferevent_writecb()
200 if (EVBUFFER_LENGTH(bufev->output) != 0) in bufferevent_writecb()
208 EVBUFFER_LENGTH(bufev->output) <= bufev->wm_write.low) in bufferevent_writecb()
214 if (EVBUFFER_LENGTH(bufev->output) != 0) in bufferevent_writecb()
439 0, EVBUFFER_LENGTH(bufev->input), bufev); in bufferevent_setwatermark()
Dhttp.c395 (long)EVBUFFER_LENGTH(req->output_buffer)); in evhttp_make_header_request()
489 (long)EVBUFFER_LENGTH(req->output_buffer)); in evhttp_make_header_response()
494 if (EVBUFFER_LENGTH(req->output_buffer)) { in evhttp_make_header_response()
532 if (EVBUFFER_LENGTH(req->output_buffer) > 0) { in evhttp_make_header()
698 if (EVBUFFER_LENGTH(evcon->output_buffer) != 0) { in evhttp_write()
788 while ((len = EVBUFFER_LENGTH(buf)) > 0) { in evhttp_handle_chunked_read()
831 EVBUFFER_LENGTH(req->input_buffer)); in evhttp_handle_chunked_read()
887 } else if (EVBUFFER_LENGTH(buf) >= req->ntoread) { in evhttp_read_body()
922 len = EVBUFFER_LENGTH(buf); in evhttp_read()
1088 EVBUFFER_LENGTH(evcon->input_buffer)); in evhttp_connection_reset()
[all …]
Devent.h964 #define EVBUFFER_LENGTH(x) (x)->off macro
Dbuffer.c214 size_t len = EVBUFFER_LENGTH(buffer); in evbuffer_readline()
Devrpc.c266 EVBUFFER_LENGTH(req->input_buffer) <= 0) in evrpc_request_cb()
/external/chromium/third_party/libevent/test/
Dregress_http.c199 if (EVBUFFER_LENGTH(bev->output) == 0) { in http_writecb()
515 if (EVBUFFER_LENGTH(req->input_buffer) != strlen(what)) { in http_request_done()
556 if (EVBUFFER_LENGTH(req->input_buffer) != 0) { in http_request_empty_done()
597 if (EVBUFFER_LENGTH(req->input_buffer) != strlen(what)) { in http_dispatcher_test_done()
599 EVBUFFER_LENGTH(req->input_buffer), strlen(what)); in http_dispatcher_test_done()
736 if (EVBUFFER_LENGTH(req->input_buffer) != strlen(POST_DATA)) { in http_post_cb()
738 EVBUFFER_LENGTH(req->input_buffer), strlen(POST_DATA)); in http_post_cb()
779 if (EVBUFFER_LENGTH(req->input_buffer) != strlen(what)) { in http_postrequest_done()
781 EVBUFFER_LENGTH(req->input_buffer), strlen(what)); in http_postrequest_done()
1229 if (EVBUFFER_LENGTH(EVBUFFER_OUTPUT(bev)) == 0) { in http_chunked_writecb()
[all …]
Dregress.gen.c300 while (EVBUFFER_LENGTH(evbuf) > 0) { in msg_unmarshal()
411 evtag_marshal(evbuf, tag, EVBUFFER_DATA(_buf), EVBUFFER_LENGTH(_buf)); in evtag_marshal_msg()
551 while (EVBUFFER_LENGTH(evbuf) > 0) { in kill_unmarshal()
637 evtag_marshal(evbuf, tag, EVBUFFER_DATA(_buf), EVBUFFER_LENGTH(_buf)); in evtag_marshal_kill()
783 while (EVBUFFER_LENGTH(evbuf) > 0) { in run_unmarshal()
805 if (tmp->some_bytes_length > EVBUFFER_LENGTH(evbuf)) in run_unmarshal()
875 evtag_marshal(evbuf, tag, EVBUFFER_DATA(_buf), EVBUFFER_LENGTH(_buf)); in evtag_marshal_run()
Dregress.c1013 if (EVBUFFER_LENGTH(evb) == 7 && in test_evbuffer()
1084 if (EVBUFFER_LENGTH(bev->input) == 8333) { in readcb()
1093 if (EVBUFFER_LENGTH(bev->output) == 0) in writecb()
1141 int len = EVBUFFER_LENGTH(bev->input); in wm_readcb()
1158 if (EVBUFFER_LENGTH(bev->output) == 0) in wm_writecb()
1371 oldlen = EVBUFFER_LENGTH(tmp); in evtag_int_test()
1373 newlen = EVBUFFER_LENGTH(tmp); in evtag_int_test()
1390 if (EVBUFFER_LENGTH(tmp) != 0) { in evtag_int_test()
1454 oldlen = EVBUFFER_LENGTH(tmp); in evtag_tag_encoding()
1456 newlen = EVBUFFER_LENGTH(tmp); in evtag_tag_encoding()
[all …]