/third_party/nghttp2/tests/ |
H A D | nghttp2_buf_test.c | 36 nghttp2_bufs bufs; in test_nghttp2_bufs_add() local 42 rv = nghttp2_bufs_init(&bufs, 1000, 3, mem); in test_nghttp2_bufs_add() 45 CU_ASSERT(bufs.cur->buf.pos == bufs.cur->buf.last); in test_nghttp2_bufs_add() 47 rv = nghttp2_bufs_add(&bufs, data, 493); in test_nghttp2_bufs_add() 49 CU_ASSERT(493 == nghttp2_buf_len(&bufs.cur->buf)); in test_nghttp2_bufs_add() 50 CU_ASSERT(493 == nghttp2_bufs_len(&bufs)); in test_nghttp2_bufs_add() 51 CU_ASSERT(507 == nghttp2_bufs_cur_avail(&bufs)); in test_nghttp2_bufs_add() 53 rv = nghttp2_bufs_add(&bufs, data, 507); in test_nghttp2_bufs_add() 55 CU_ASSERT(1000 == nghttp2_buf_len(&bufs in test_nghttp2_bufs_add() 71 nghttp2_bufs bufs; test_nghttp2_bufs_add_stack_buffer_overflow_bug() local 90 nghttp2_bufs bufs; test_nghttp2_bufs_addb() local 156 nghttp2_bufs bufs; test_nghttp2_bufs_orb() local 190 nghttp2_bufs bufs; test_nghttp2_bufs_remove() local 231 nghttp2_bufs bufs; test_nghttp2_bufs_reset() local 269 nghttp2_bufs bufs; test_nghttp2_bufs_advance() local 291 nghttp2_bufs bufs; test_nghttp2_bufs_next_present() local 322 nghttp2_bufs bufs; test_nghttp2_bufs_realloc() local [all...] |
H A D | nghttp2_hd_test.c | 49 nghttp2_bufs bufs; in test_nghttp2_hd_deflate() local 56 frame_pack_bufs_init(&bufs); in test_nghttp2_hd_deflate() 62 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva1, ARRLEN(nva1)); in test_nghttp2_hd_deflate() 63 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_deflate() 67 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate() 73 nghttp2_bufs_reset(&bufs); in test_nghttp2_hd_deflate() 76 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva2, ARRLEN(nva2)); in test_nghttp2_hd_deflate() 77 blocklen = (ssize_t)nghttp2_bufs_len(&bufs); in test_nghttp2_hd_deflate() 81 CU_ASSERT(blocklen == inflate_hd(&inflater, &out, &bufs, 0, mem)); in test_nghttp2_hd_deflate() 87 nghttp2_bufs_reset(&bufs); in test_nghttp2_hd_deflate() 144 nghttp2_bufs bufs; test_nghttp2_hd_deflate_same_indexed_repr() local 193 nghttp2_bufs bufs; test_nghttp2_hd_inflate_indexed() local 234 nghttp2_bufs bufs; test_nghttp2_hd_inflate_indname_noinc() local 274 nghttp2_bufs bufs; test_nghttp2_hd_inflate_indname_inc() local 311 nghttp2_bufs bufs; test_nghttp2_hd_inflate_indname_inc_eviction() local 363 nghttp2_bufs bufs; test_nghttp2_hd_inflate_newname_noinc() local 405 nghttp2_bufs bufs; test_nghttp2_hd_inflate_newname_inc() local 441 nghttp2_bufs bufs; test_nghttp2_hd_inflate_clearall_inc() local 513 nghttp2_bufs bufs; test_nghttp2_hd_inflate_zero_length_huffman() local 548 nghttp2_bufs bufs; test_nghttp2_hd_inflate_expect_table_size_update() local 639 nghttp2_bufs bufs; test_nghttp2_hd_inflate_unexpected_table_size_update() local 664 nghttp2_bufs bufs; test_nghttp2_hd_ringbuf_reserve() local 717 nghttp2_bufs bufs; test_nghttp2_hd_change_table_size() local 979 nghttp2_bufs bufs; check_deflate_inflate() local 1163 nghttp2_bufs bufs; test_nghttp2_hd_no_index() local 1214 nghttp2_bufs bufs; test_nghttp2_hd_deflate_bound() local 1248 nghttp2_bufs bufs; test_nghttp2_hd_public_api() local 1299 nghttp2_bufs bufs; test_nghttp2_hd_deflate_hd_vec() local 1516 nghttp2_bufs bufs; test_nghttp2_hd_huff_encode() local [all...] |
H A D | nghttp2_frame_test.c | 75 nghttp2_bufs bufs; in test_nghttp2_frame_pack_headers() local 85 frame_pack_bufs_init(&bufs); in test_nghttp2_frame_pack_headers() 99 rv = nghttp2_frame_pack_headers(&bufs, &frame, &deflater); in test_nghttp2_frame_pack_headers() 101 nghttp2_bufs_rewind(&bufs); in test_nghttp2_frame_pack_headers() 104 CU_ASSERT(nghttp2_bufs_len(&bufs) > 0); in test_nghttp2_frame_pack_headers() 105 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs)); in test_nghttp2_frame_pack_headers() 107 check_frame_header(nghttp2_bufs_len(&bufs) - NGHTTP2_FRAME_HDLEN, in test_nghttp2_frame_pack_headers() 114 hdblocklen = nghttp2_bufs_len(&bufs) - NGHTTP2_FRAME_HDLEN; in test_nghttp2_frame_pack_headers() 116 inflate_hd(&inflater, &out, &bufs, NGHTTP2_FRAME_HDLEN, mem)); in test_nghttp2_frame_pack_headers() 124 nghttp2_bufs_reset(&bufs); in test_nghttp2_frame_pack_headers() 171 nghttp2_bufs bufs; test_nghttp2_frame_pack_headers_frame_too_large() local 211 nghttp2_bufs bufs; test_nghttp2_frame_pack_priority() local 240 nghttp2_bufs bufs; test_nghttp2_frame_pack_rst_stream() local 276 nghttp2_bufs bufs; test_nghttp2_frame_pack_settings() local 313 nghttp2_bufs bufs; test_nghttp2_frame_pack_push_promise() local 361 nghttp2_bufs bufs; test_nghttp2_frame_pack_ping() local 382 nghttp2_bufs bufs; test_nghttp2_frame_pack_goaway() local 430 nghttp2_bufs bufs; test_nghttp2_frame_pack_window_update() local 451 nghttp2_bufs bufs; test_nghttp2_frame_pack_altsvc() local 504 nghttp2_bufs bufs; test_nghttp2_frame_pack_origin() local 596 nghttp2_bufs bufs; test_nghttp2_frame_pack_priority_update() local [all...] |
H A D | failmalloc_test.c | 49 static void data_feed_init(data_feed *df, nghttp2_bufs *bufs) { in data_feed_init() argument 53 buf = &bufs->head->buf; in data_feed_init() 278 nghttp2_bufs bufs; in run_nghttp2_session_recv() local 292 rv = frame_pack_bufs_init(&bufs); in run_nghttp2_session_recv() 308 nghttp2_bufs_add(&bufs, NGHTTP2_CLIENT_MAGIC, NGHTTP2_CLIENT_MAGIC_LEN); in run_nghttp2_session_recv() 309 data_feed_init(&df, &bufs); in run_nghttp2_session_recv() 310 nghttp2_bufs_reset(&bufs); in run_nghttp2_session_recv() 327 nghttp2_frame_pack_settings(&bufs, &frame.settings); in run_nghttp2_session_recv() 329 data_feed_init(&df, &bufs); in run_nghttp2_session_recv() 330 nghttp2_bufs_reset(&bufs); in run_nghttp2_session_recv() 398 nghttp2_bufs bufs; run_nghttp2_frame_pack_headers() local 448 nghttp2_bufs bufs; run_nghttp2_frame_pack_settings() local 500 deflate_inflate(nghttp2_hd_deflater *deflater, nghttp2_hd_inflater *inflater, nghttp2_bufs *bufs, nghttp2_nv *nva, size_t nvlen, nghttp2_mem *mem) deflate_inflate() argument 525 nghttp2_bufs bufs; run_nghttp2_hd() local [all...] |
H A D | nghttp2_session_test.c | 103 nghttp2_bufs *bufs) { in scripted_data_feed_init2() 113 for (ci = bufs->head; ci; ci = ci->next) { in scripted_data_feed_init2() 674 nghttp2_bufs bufs; in test_nghttp2_session_recv() local 686 frame_pack_bufs_init(&bufs); in test_nghttp2_session_recv() 703 rv = nghttp2_frame_pack_headers(&bufs, &frame.headers, &deflater); in test_nghttp2_session_recv() 707 scripted_data_feed_init2(&df, &bufs); in test_nghttp2_session_recv() 709 framelen = nghttp2_bufs_len(&bufs); in test_nghttp2_session_recv() 727 nghttp2_bufs_reset(&bufs); in test_nghttp2_session_recv() 732 nghttp2_frame_pack_priority(&bufs, &frame.priority); in test_nghttp2_session_recv() 736 scripted_data_feed_init2(&df, &bufs); in test_nghttp2_session_recv() 102 scripted_data_feed_init2(scripted_data_feed *df, nghttp2_bufs *bufs) scripted_data_feed_init2() argument 791 nghttp2_bufs bufs; test_nghttp2_session_recv_invalid_stream_id() local 836 nghttp2_bufs bufs; test_nghttp2_session_recv_invalid_frame() local 1240 nghttp2_bufs bufs; test_nghttp2_session_recv_continuation() local 1435 nghttp2_bufs bufs; test_nghttp2_session_recv_headers_with_priority() local 1585 nghttp2_bufs bufs; test_nghttp2_session_recv_headers_with_padding() local 1691 nghttp2_bufs bufs; test_nghttp2_session_recv_headers_early_response() local 1756 nghttp2_bufs bufs; test_nghttp2_session_recv_headers_for_closed_stream() local 1841 nghttp2_bufs bufs; test_nghttp2_session_recv_headers_with_extpri() local 1939 nghttp2_bufs bufs; test_nghttp2_session_server_recv_push_response() local 1990 nghttp2_bufs bufs; test_nghttp2_session_recv_premature_headers() local 2138 nghttp2_bufs bufs; test_nghttp2_session_recv_settings_header_table_size() local 2633 nghttp2_bufs bufs; test_nghttp2_session_recv_origin() local 2780 nghttp2_bufs bufs; test_nghttp2_session_recv_priority_update() local 2986 nghttp2_bufs bufs; test_nghttp2_session_continue() local 4949 nghttp2_bufs bufs; test_nghttp2_session_upgrade2() local 5497 nghttp2_bufs bufs; test_nghttp2_submit_request_without_data() local 5597 nghttp2_bufs bufs; test_nghttp2_submit_response_without_data() local 5672 nghttp2_bufs bufs; test_nghttp2_submit_trailer() local 5847 nghttp2_bufs bufs; test_nghttp2_submit_headers() local 8122 check_session_recv_data_with_padding(nghttp2_bufs *bufs, size_t datalen, nghttp2_mem *mem) check_session_recv_data_with_padding() argument 9520 nghttp2_bufs bufs; test_nghttp2_session_stream_get_state() local 10092 nghttp2_bufs bufs; test_nghttp2_session_on_header_temporal_failure() local 10309 nghttp2_bufs bufs; test_nghttp2_session_cancel_reserved_remote() local 10480 nghttp2_bufs bufs; test_nghttp2_session_on_begin_headers_temporal_failure() local 10636 nghttp2_bufs bufs; test_nghttp2_session_flooding() local 10769 nghttp2_bufs bufs; test_nghttp2_session_change_extpri_stream_priority() local 11352 nghttp2_bufs bufs; test_nghttp2_session_too_many_settings() local 11413 nghttp2_bufs bufs; prepare_session_removed_closed_stream() local 11514 nghttp2_bufs bufs; test_nghttp2_session_removed_closed_stream() local 11788 nghttp2_bufs bufs; test_nghttp2_session_server_fallback_rfc7540_priorities() local 11976 nghttp2_bufs bufs; test_nghttp2_session_stream_reset_ratelim() local 12080 nghttp2_bufs bufs; check_nghttp2_http_recv_headers_fail() local 12122 nghttp2_bufs bufs; check_nghttp2_http_recv_headers_ok() local 12455 nghttp2_bufs bufs; test_nghttp2_http_content_length() local 12527 nghttp2_bufs bufs; test_nghttp2_http_content_length_mismatch() local 12710 nghttp2_bufs bufs; test_nghttp2_http_non_final_response() local 12856 nghttp2_bufs bufs; test_nghttp2_http_trailer_headers() local 12969 nghttp2_bufs bufs; test_nghttp2_http_ignore_regular_header() local 13092 nghttp2_bufs bufs; test_nghttp2_http_ignore_content_length() local 13187 nghttp2_bufs bufs; test_nghttp2_http_record_request_method() local 13238 nghttp2_bufs bufs; test_nghttp2_http_push_promise() local 13317 nghttp2_bufs bufs; test_nghttp2_http_head_method_upgrade_workaround() local 13359 nghttp2_bufs bufs; test_nghttp2_http_no_rfc9113_leading_and_trailing_ws_validation() local [all...] |
/third_party/nghttp2/lib/ |
H A D | nghttp2_buf.c | 116 int nghttp2_bufs_init(nghttp2_bufs *bufs, size_t chunk_length, size_t max_chunk, in nghttp2_bufs_init() argument 118 return nghttp2_bufs_init2(bufs, chunk_length, max_chunk, 0, mem); in nghttp2_bufs_init() 121 int nghttp2_bufs_init2(nghttp2_bufs *bufs, size_t chunk_length, in nghttp2_bufs_init2() argument 123 return nghttp2_bufs_init3(bufs, chunk_length, max_chunk, max_chunk, offset, in nghttp2_bufs_init2() 127 int nghttp2_bufs_init3(nghttp2_bufs *bufs, size_t chunk_length, in nghttp2_bufs_init3() argument 142 bufs->mem = mem; in nghttp2_bufs_init3() 143 bufs->offset = offset; in nghttp2_bufs_init3() 145 bufs->head = chain; in nghttp2_bufs_init3() 146 bufs->cur = bufs in nghttp2_bufs_init3() 158 nghttp2_bufs_realloc(nghttp2_bufs *bufs, size_t chunk_length) nghttp2_bufs_realloc() argument 184 nghttp2_bufs_free(nghttp2_bufs *bufs) nghttp2_bufs_free() argument 202 nghttp2_bufs_wrap_init(nghttp2_bufs *bufs, uint8_t *begin, size_t len, nghttp2_mem *mem) nghttp2_bufs_wrap_init() argument 229 nghttp2_bufs_wrap_init2(nghttp2_bufs *bufs, const nghttp2_vec *vec, size_t veclen, nghttp2_mem *mem) nghttp2_bufs_wrap_init2() argument 269 nghttp2_bufs_wrap_free(nghttp2_bufs *bufs) nghttp2_bufs_wrap_free() argument 279 nghttp2_bufs_seek_last_present(nghttp2_bufs *bufs) nghttp2_bufs_seek_last_present() argument 291 nghttp2_bufs_len(nghttp2_bufs *bufs) nghttp2_bufs_len() argument 303 bufs_alloc_chain(nghttp2_bufs *bufs) bufs_alloc_chain() argument 335 nghttp2_bufs_add(nghttp2_bufs *bufs, const void *data, size_t len) nghttp2_bufs_add() argument 363 bufs_ensure_addb(nghttp2_bufs *bufs) bufs_ensure_addb() argument 381 nghttp2_bufs_addb(nghttp2_bufs *bufs, uint8_t b) nghttp2_bufs_addb() argument 394 nghttp2_bufs_addb_hold(nghttp2_bufs *bufs, uint8_t b) nghttp2_bufs_addb_hold() argument 407 nghttp2_bufs_orb(nghttp2_bufs *bufs, uint8_t b) nghttp2_bufs_orb() argument 420 nghttp2_bufs_orb_hold(nghttp2_bufs *bufs, uint8_t b) nghttp2_bufs_orb_hold() argument 433 nghttp2_bufs_remove(nghttp2_bufs *bufs, uint8_t **out) nghttp2_bufs_remove() argument 468 nghttp2_bufs_remove_copy(nghttp2_bufs *bufs, uint8_t *out) nghttp2_bufs_remove_copy() argument 486 nghttp2_bufs_reset(nghttp2_bufs *bufs) nghttp2_bufs_reset() argument 519 nghttp2_bufs_advance(nghttp2_bufs *bufs) nghttp2_bufs_advance() argument 521 nghttp2_bufs_next_present(nghttp2_bufs *bufs) nghttp2_bufs_next_present() argument [all...] |
H A D | nghttp2_buf.h | 161 int nghttp2_bufs_init(nghttp2_bufs *bufs, size_t chunk_length, size_t max_chunk, 168 int nghttp2_bufs_init2(nghttp2_bufs *bufs, size_t chunk_length, 172 * Initializes |bufs|. Each buffer size is given in the 175 * remaining buffers are deleted. Each buffer will have bufs->pos and 176 * bufs->last shifted to left by |offset| bytes on creation and reset. 178 * This function allocates first buffer. bufs->head and bufs->cur 190 int nghttp2_bufs_init3(nghttp2_bufs *bufs, size_t chunk_length, 195 * Frees any related resources to the |bufs|. 197 void nghttp2_bufs_free(nghttp2_bufs *bufs); [all...] |
H A D | nghttp2_frame.c | 297 * This function assumes bufs->cur points to the last buf chain of the 305 static int frame_pack_headers_shared(nghttp2_bufs *bufs, in frame_pack_headers_shared() argument 311 buf = &bufs->head->buf; in frame_pack_headers_shared() 321 if (bufs->head != bufs->cur) { in frame_pack_headers_shared() 328 if (bufs->head != bufs->cur) { in frame_pack_headers_shared() 334 ce = bufs->cur; in frame_pack_headers_shared() 336 for (ci = bufs->head->next; ci != ce; ci = ci->next) { in frame_pack_headers_shared() 361 int nghttp2_frame_pack_headers(nghttp2_bufs *bufs, nghttp2_header argument 433 nghttp2_frame_pack_priority(nghttp2_bufs *bufs, nghttp2_priority *frame) nghttp2_frame_pack_priority() argument 456 nghttp2_frame_pack_rst_stream(nghttp2_bufs *bufs, nghttp2_rst_stream *frame) nghttp2_frame_pack_rst_stream() argument 479 nghttp2_frame_pack_settings(nghttp2_bufs *bufs, nghttp2_settings *frame) nghttp2_frame_pack_settings() argument 554 nghttp2_frame_pack_push_promise(nghttp2_bufs *bufs, nghttp2_push_promise *frame, nghttp2_hd_deflater *deflater) nghttp2_frame_pack_push_promise() argument 597 nghttp2_frame_pack_ping(nghttp2_bufs *bufs, nghttp2_ping *frame) nghttp2_frame_pack_ping() argument 619 nghttp2_frame_pack_goaway(nghttp2_bufs *bufs, nghttp2_goaway *frame) nghttp2_frame_pack_goaway() argument 691 nghttp2_frame_pack_window_update(nghttp2_bufs *bufs, nghttp2_window_update *frame) nghttp2_frame_pack_window_update() argument 715 nghttp2_frame_pack_altsvc(nghttp2_bufs *bufs, nghttp2_extension *frame) nghttp2_frame_pack_altsvc() argument 789 nghttp2_frame_pack_origin(nghttp2_bufs *bufs, nghttp2_extension *frame) nghttp2_frame_pack_origin() argument 891 nghttp2_frame_pack_priority_update(nghttp2_bufs *bufs, nghttp2_extension *frame) nghttp2_frame_pack_priority_update() argument 1174 nghttp2_frame_add_pad(nghttp2_bufs *bufs, nghttp2_frame_hd *hd, size_t padlen, int framehd_only) nghttp2_frame_add_pad() argument [all...] |
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_buf.c | 116 int nghttp2_bufs_init(nghttp2_bufs *bufs, size_t chunk_length, size_t max_chunk, in nghttp2_bufs_init() argument 118 return nghttp2_bufs_init2(bufs, chunk_length, max_chunk, 0, mem); in nghttp2_bufs_init() 121 int nghttp2_bufs_init2(nghttp2_bufs *bufs, size_t chunk_length, in nghttp2_bufs_init2() argument 123 return nghttp2_bufs_init3(bufs, chunk_length, max_chunk, max_chunk, offset, in nghttp2_bufs_init2() 127 int nghttp2_bufs_init3(nghttp2_bufs *bufs, size_t chunk_length, in nghttp2_bufs_init3() argument 142 bufs->mem = mem; in nghttp2_bufs_init3() 143 bufs->offset = offset; in nghttp2_bufs_init3() 145 bufs->head = chain; in nghttp2_bufs_init3() 146 bufs->cur = bufs in nghttp2_bufs_init3() 158 nghttp2_bufs_realloc(nghttp2_bufs *bufs, size_t chunk_length) nghttp2_bufs_realloc() argument 184 nghttp2_bufs_free(nghttp2_bufs *bufs) nghttp2_bufs_free() argument 202 nghttp2_bufs_wrap_init(nghttp2_bufs *bufs, uint8_t *begin, size_t len, nghttp2_mem *mem) nghttp2_bufs_wrap_init() argument 229 nghttp2_bufs_wrap_init2(nghttp2_bufs *bufs, const nghttp2_vec *vec, size_t veclen, nghttp2_mem *mem) nghttp2_bufs_wrap_init2() argument 269 nghttp2_bufs_wrap_free(nghttp2_bufs *bufs) nghttp2_bufs_wrap_free() argument 279 nghttp2_bufs_seek_last_present(nghttp2_bufs *bufs) nghttp2_bufs_seek_last_present() argument 291 nghttp2_bufs_len(nghttp2_bufs *bufs) nghttp2_bufs_len() argument 303 bufs_alloc_chain(nghttp2_bufs *bufs) bufs_alloc_chain() argument 335 nghttp2_bufs_add(nghttp2_bufs *bufs, const void *data, size_t len) nghttp2_bufs_add() argument 363 bufs_ensure_addb(nghttp2_bufs *bufs) bufs_ensure_addb() argument 381 nghttp2_bufs_addb(nghttp2_bufs *bufs, uint8_t b) nghttp2_bufs_addb() argument 394 nghttp2_bufs_addb_hold(nghttp2_bufs *bufs, uint8_t b) nghttp2_bufs_addb_hold() argument 407 nghttp2_bufs_orb(nghttp2_bufs *bufs, uint8_t b) nghttp2_bufs_orb() argument 420 nghttp2_bufs_orb_hold(nghttp2_bufs *bufs, uint8_t b) nghttp2_bufs_orb_hold() argument 433 nghttp2_bufs_remove(nghttp2_bufs *bufs, uint8_t **out) nghttp2_bufs_remove() argument 468 nghttp2_bufs_remove_copy(nghttp2_bufs *bufs, uint8_t *out) nghttp2_bufs_remove_copy() argument 486 nghttp2_bufs_reset(nghttp2_bufs *bufs) nghttp2_bufs_reset() argument 519 nghttp2_bufs_advance(nghttp2_bufs *bufs) nghttp2_bufs_advance() argument 521 nghttp2_bufs_next_present(nghttp2_bufs *bufs) nghttp2_bufs_next_present() argument [all...] |
H A D | nghttp2_buf.h | 161 int nghttp2_bufs_init(nghttp2_bufs *bufs, size_t chunk_length, size_t max_chunk, 168 int nghttp2_bufs_init2(nghttp2_bufs *bufs, size_t chunk_length, 172 * Initializes |bufs|. Each buffer size is given in the 175 * remaining buffers are deleted. Each buffer will have bufs->pos and 176 * bufs->last shifted to left by |offset| bytes on creation and reset. 178 * This function allocates first buffer. bufs->head and bufs->cur 190 int nghttp2_bufs_init3(nghttp2_bufs *bufs, size_t chunk_length, 195 * Frees any related resources to the |bufs|. 197 void nghttp2_bufs_free(nghttp2_bufs *bufs); [all...] |
H A D | nghttp2_frame.c | 297 * This function assumes bufs->cur points to the last buf chain of the 305 static int frame_pack_headers_shared(nghttp2_bufs *bufs, in frame_pack_headers_shared() argument 311 buf = &bufs->head->buf; in frame_pack_headers_shared() 321 if (bufs->head != bufs->cur) { in frame_pack_headers_shared() 328 if (bufs->head != bufs->cur) { in frame_pack_headers_shared() 334 ce = bufs->cur; in frame_pack_headers_shared() 336 for (ci = bufs->head->next; ci != ce; ci = ci->next) { in frame_pack_headers_shared() 361 int nghttp2_frame_pack_headers(nghttp2_bufs *bufs, nghttp2_header argument 433 nghttp2_frame_pack_priority(nghttp2_bufs *bufs, nghttp2_priority *frame) nghttp2_frame_pack_priority() argument 456 nghttp2_frame_pack_rst_stream(nghttp2_bufs *bufs, nghttp2_rst_stream *frame) nghttp2_frame_pack_rst_stream() argument 479 nghttp2_frame_pack_settings(nghttp2_bufs *bufs, nghttp2_settings *frame) nghttp2_frame_pack_settings() argument 554 nghttp2_frame_pack_push_promise(nghttp2_bufs *bufs, nghttp2_push_promise *frame, nghttp2_hd_deflater *deflater) nghttp2_frame_pack_push_promise() argument 597 nghttp2_frame_pack_ping(nghttp2_bufs *bufs, nghttp2_ping *frame) nghttp2_frame_pack_ping() argument 619 nghttp2_frame_pack_goaway(nghttp2_bufs *bufs, nghttp2_goaway *frame) nghttp2_frame_pack_goaway() argument 691 nghttp2_frame_pack_window_update(nghttp2_bufs *bufs, nghttp2_window_update *frame) nghttp2_frame_pack_window_update() argument 715 nghttp2_frame_pack_altsvc(nghttp2_bufs *bufs, nghttp2_extension *frame) nghttp2_frame_pack_altsvc() argument 789 nghttp2_frame_pack_origin(nghttp2_bufs *bufs, nghttp2_extension *frame) nghttp2_frame_pack_origin() argument 891 nghttp2_frame_pack_priority_update(nghttp2_bufs *bufs, nghttp2_extension *frame) nghttp2_frame_pack_priority_update() argument 1174 nghttp2_frame_add_pad(nghttp2_bufs *bufs, nghttp2_frame_hd *hd, size_t padlen, int framehd_only) nghttp2_frame_add_pad() argument [all...] |
/third_party/vk-gl-cts/external/amber/src/src/vkscript/ |
H A D | parser_test.cc | 134 const auto& bufs = script->GetBuffers(); in TEST_F() local 135 ASSERT_EQ(1U, bufs.size()); in TEST_F() 137 bufs[0]->GetFormat()->GetFormatType()); in TEST_F() 149 const auto& bufs = script->GetBuffers(); in TEST_F() local 150 ASSERT_EQ(2U, bufs.size()); in TEST_F() 152 bufs[1]->GetFormat()->GetFormatType()); in TEST_F() 232 const auto& bufs = script->GetBuffers(); in TEST_F() local 233 ASSERT_EQ(2U, bufs.size()); in TEST_F() 235 bufs[0]->GetFormat()->GetFormatType()); in TEST_F() 238 bufs[ in TEST_F() 254 const auto& bufs = script->GetBuffers(); TEST_F() local 282 const auto& bufs = script->GetBuffers(); TEST_F() local 332 const auto& bufs = script->GetBuffers(); TEST_F() local 360 const auto& bufs = script->GetBuffers(); TEST_F() local 438 const auto& bufs = script->GetBuffers(); TEST_F() local 493 const auto& bufs = script->GetBuffers(); TEST_F() local [all...] |
/third_party/alsa-utils/axfer/ |
H A D | frame-cache.c | 32 char **bufs = cache->buf; in align_frames_in_n() local 43 memmove(bufs[i], bufs[i] + offset, size); in align_frames_in_n() 44 buf_ptrs[i] = bufs[i] + size; in align_frames_in_n() 76 char **bufs = calloc(samples_per_frame, sizeof(*bufs)); in frame_cache_init() local 80 cache->buf = bufs; in frame_cache_init() 82 if (bufs == NULL || buf_ptrs == NULL) in frame_cache_init() 85 bufs[i] = calloc(frames_per_cache, bytes_per_sample); in frame_cache_init() 86 if (bufs[ in frame_cache_init() 103 char **bufs = cache->buf; frame_cache_destroy() local [all...] |
H A D | mapper-multiple.c | 17 char **bufs; member 123 state->bufs = calloc(cntr_count, sizeof(char *)); in multiple_pre_process() 124 if (state->bufs == NULL) in multiple_pre_process() 138 state->bufs[i] = malloc(bytes_per_buffer); in multiple_pre_process() 139 if (state->bufs[i] == NULL) in multiple_pre_process() 141 memset(state->bufs[i], 0, bytes_per_buffer); in multiple_pre_process() 186 src_bufs = state->bufs; in multiple_muxer_process_frames() 217 dst_bufs = state->bufs; in multiple_demuxer_process_frames() 231 if (state->bufs) { in multiple_post_process() 233 if (state->bufs[ in multiple_post_process() [all...] |
/third_party/vk-gl-cts/external/amber/src/src/amberscript/ |
H A D | parser_bind_test.cc | 1391 const auto& bufs = pipeline->GetBuffers(); in TEST_F() local 1392 ASSERT_EQ(1U, bufs.size()); in TEST_F() 1393 EXPECT_EQ(BufferType::kUniform, bufs[0].type); in TEST_F() 1394 EXPECT_EQ(1U, bufs[0].descriptor_set); in TEST_F() 1395 EXPECT_EQ(2U, bufs[0].binding); in TEST_F() 1396 EXPECT_EQ(0U, bufs[0].descriptor_offset); in TEST_F() 1397 EXPECT_EQ(~0ULL, bufs[0].descriptor_range); in TEST_F() 1398 EXPECT_EQ(static_cast<uint32_t>(0), bufs[0].location); in TEST_F() 1400 bufs[0].buffer->GetFormat()->GetFormatType()); in TEST_F() 1429 const auto& bufs in TEST_F() local 1644 const auto& bufs = pipeline->GetBuffers(); TEST_P() local 2039 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 2070 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 2177 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 2293 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 2458 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 2540 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 2571 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 2676 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 2707 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 2957 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 2996 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 3036 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 3260 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 3297 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 3398 const auto& bufs = pipeline->GetBuffers(); TEST_F() local 3435 const auto& bufs = pipeline->GetBuffers(); TEST_F() local [all...] |
/third_party/nghttp2/fuzz/ |
H A D | fuzz_frames.cc | 39 nghttp2_bufs bufs; in check_frame_pack_headers() local 49 frame_pack_bufs_init(&bufs); in check_frame_pack_headers() 69 rv = nghttp2_frame_pack_headers(&bufs, &frame, &deflater); in check_frame_pack_headers() 71 unpack_framebuf((nghttp2_frame *)&oframe, &bufs); in check_frame_pack_headers() 73 inflate_hd(&inflater, &out, &bufs, NGHTTP2_FRAME_HDLEN, mem); in check_frame_pack_headers() 75 nghttp2_bufs_reset(&bufs); in check_frame_pack_headers() 89 nghttp2_bufs_free(&bufs); in check_frame_pack_headers() 99 nghttp2_bufs bufs; in check_frame_push_promise() local 109 frame_pack_bufs_init(&bufs); in check_frame_push_promise() 128 rv = nghttp2_frame_pack_push_promise(&bufs, in check_frame_push_promise() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/ |
H A D | 1-1.c | 69 char *bufs; in main() local 92 bufs = malloc(NUM_AIOCBS * BUF_SIZE); in main() 94 if (bufs == NULL) { in main() 100 if (write(fd, bufs, NUM_AIOCBS * BUF_SIZE) != (NUM_AIOCBS * BUF_SIZE)) { in main() 102 free(bufs); in main() 116 aiocbs[i]->aio_buf = &bufs[i * BUF_SIZE]; in main() 143 free(bufs); in main() 156 free(bufs); in main() 169 free(bufs); in main() 184 free(bufs); in main() [all...] |
/third_party/alsa-utils/axfer/test/ |
H A D | generator.c | 66 char **bufs; in allocate_vector() local 71 bufs = calloc(samples_per_frame, sizeof(char *)); in allocate_vector() 72 if (bufs == NULL) in allocate_vector() 76 bufs[i] = calloc(frame_count, bytes_per_sample); in allocate_vector() 77 if (bufs[i] == NULL) { in allocate_vector() 79 free(bufs[i]); in allocate_vector() 80 free(bufs); in allocate_vector() 85 return bufs; in allocate_vector() 111 char **bufs = frame_buffer; in fill_vector() local 121 len = read(fd, bufs[ in fill_vector() 139 char **bufs = frame_buffer; deallocate_vector() local [all...] |
/third_party/libuv/src/win/ |
H A D | stream.c | 116 const uv_buf_t bufs[], in uv_write() 129 err = uv__tcp_write(loop, req, (uv_tcp_t*) handle, bufs, nbufs, cb); in uv_write() 133 loop, req, (uv_pipe_t*) handle, bufs, nbufs, NULL, cb); in uv_write() 136 err = uv__tty_write(loop, req, (uv_tty_t*) handle, bufs, nbufs, cb); in uv_write() 148 const uv_buf_t bufs[], in uv_write2() 156 return uv_write(req, handle, bufs, nbufs, cb); in uv_write2() 166 loop, req, (uv_pipe_t*) handle, bufs, nbufs, send_handle, cb); in uv_write2() 172 const uv_buf_t bufs[], in uv_try_write() 181 return uv__tcp_try_write((uv_tcp_t*) stream, bufs, nbufs); in uv_try_write() 183 return uv__tty_try_write((uv_tty_t*) stream, bufs, nbuf in uv_try_write() 114 uv_write(uv_write_t* req, uv_stream_t* handle, const uv_buf_t bufs[], unsigned int nbufs, uv_write_cb cb) uv_write() argument 146 uv_write2(uv_write_t* req, uv_stream_t* handle, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t* send_handle, uv_write_cb cb) uv_write2() argument 171 uv_try_write(uv_stream_t* stream, const uv_buf_t bufs[], unsigned int nbufs) uv_try_write() argument 193 uv_try_write2(uv_stream_t* stream, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t* send_handle) uv_try_write2() argument [all...] |
/third_party/node/deps/uv/src/win/ |
H A D | stream.c | 116 const uv_buf_t bufs[], in uv_write() 129 err = uv__tcp_write(loop, req, (uv_tcp_t*) handle, bufs, nbufs, cb); in uv_write() 133 loop, req, (uv_pipe_t*) handle, bufs, nbufs, NULL, cb); in uv_write() 136 err = uv__tty_write(loop, req, (uv_tty_t*) handle, bufs, nbufs, cb); in uv_write() 148 const uv_buf_t bufs[], in uv_write2() 156 return uv_write(req, handle, bufs, nbufs, cb); in uv_write2() 166 loop, req, (uv_pipe_t*) handle, bufs, nbufs, send_handle, cb); in uv_write2() 172 const uv_buf_t bufs[], in uv_try_write() 181 return uv__tcp_try_write((uv_tcp_t*) stream, bufs, nbufs); in uv_try_write() 183 return uv__tty_try_write((uv_tty_t*) stream, bufs, nbuf in uv_try_write() 114 uv_write(uv_write_t* req, uv_stream_t* handle, const uv_buf_t bufs[], unsigned int nbufs, uv_write_cb cb) uv_write() argument 146 uv_write2(uv_write_t* req, uv_stream_t* handle, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t* send_handle, uv_write_cb cb) uv_write2() argument 171 uv_try_write(uv_stream_t* stream, const uv_buf_t bufs[], unsigned int nbufs) uv_try_write() argument 193 uv_try_write2(uv_stream_t* stream, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t* send_handle) uv_try_write2() argument [all...] |
/third_party/ltp/lib/ |
H A D | tst_buffers.c | 131 void tst_buffers_alloc(struct tst_buffers bufs[]) in tst_buffers_alloc() argument 135 for (i = 0; bufs[i].ptr; i++) { in tst_buffers_alloc() 136 if (bufs[i].size) in tst_buffers_alloc() 137 *((void**)bufs[i].ptr) = tst_alloc(bufs[i].size); in tst_buffers_alloc() 138 else if (bufs[i].iov_sizes) in tst_buffers_alloc() 139 *((void**)bufs[i].ptr) = tst_iovec_alloc(bufs[i].iov_sizes); in tst_buffers_alloc() 141 *((void**)bufs[i].ptr) = tst_strdup(bufs[ in tst_buffers_alloc() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/ |
H A D | 18-1.c | 47 char *bufs; in main() local 65 bufs = malloc(NUM_AIOCBS * BUF_SIZE); in main() 67 if (bufs == NULL) { in main() 78 aiocbs[0]->aio_buf = bufs; in main() 91 free(bufs); in main() 102 free(bufs); in main() 108 free(bufs); in main()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | DrawBuffersTest.cpp | 280 const GLenum bufs[] = {GL_NONE, GL_COLOR_ATTACHMENT1}; in TEST_P() local 281 setDrawBuffers(2, bufs); in TEST_P() 314 const GLenum bufs[] = {GL_NONE, GL_COLOR_ATTACHMENT1}; in TEST_P() local 315 setDrawBuffers(2, bufs); in TEST_P() 355 const GLenum bufs[] = {GL_COLOR_ATTACHMENT0, GL_NONE, GL_NONE, GL_COLOR_ATTACHMENT3}; in TEST_P() local 361 setDrawBuffers(4, bufs); in TEST_P() 397 const GLenum bufs[] = {GL_COLOR_ATTACHMENT0, GL_NONE, GL_NONE, GL_COLOR_ATTACHMENT3}; in TEST_P() local 399 setDrawBuffers(4, bufs); in TEST_P() 422 GLenum bufs[8] = {GL_NONE}; in TEST_P() local 432 bufs[texInde in TEST_P() 625 const GLenum bufs[] = { TEST_P() local 657 const GLenum bufs[] = {GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1}; TEST_P() local 716 const GLenum bufs[] = { TEST_P() local 759 const GLenum bufs[] = { TEST_P() local 799 const GLenum bufs[] = { TEST_P() local 839 GLenum bufs[4] = {GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1, GL_COLOR_ATTACHMENT2, TEST_P() local [all...] |
/third_party/libuv/src/unix/ |
H A D | fs.c | 90 #define preadv(fd, bufs, nbufs, off) \ 91 pread(fd, (bufs)->iov_base, (bufs)->iov_len, off) 92 #define pwritev(fd, bufs, nbufs, off) \ 93 pwrite(fd, (bufs)->iov_base, (bufs)->iov_len, off) 111 req->bufs = NULL; \ 431 const struct iovec* bufs; in uv__fs_read() local 440 bufs = (const struct iovec*) req->bufs; in uv__fs_read() 1115 const struct iovec* bufs; uv__fs_write() local 1507 uv__fs_buf_offset(uv_buf_t* bufs, size_t size) uv__fs_buf_offset() argument 1524 uv_buf_t* bufs; uv__fs_write_all() local 1904 uv_fs_read(uv_loop_t* loop, uv_fs_t* req, uv_file file, const uv_buf_t bufs[], unsigned int nbufs, int64_t off, uv_fs_cb cb) uv_fs_read() argument 2093 uv_fs_write(uv_loop_t* loop, uv_fs_t* req, uv_file file, const uv_buf_t bufs[], unsigned int nbufs, int64_t off, uv_fs_cb cb) uv_fs_write() argument [all...] |
/third_party/lzma/C/ |
H A D | Bcj2.c | 40 if (p->bufs[BCJ2_STREAM_RC] == p->lims[BCJ2_STREAM_RC])
in Bcj2Dec_Decode() 45 code = (code << 8) | *(p->bufs[BCJ2_STREAM_RC])++;
in Bcj2Dec_Decode() 58 const Byte *cur = p->bufs[state];
in Bcj2Dec_Decode() 61 p->bufs[state] = cur + 4;
in Bcj2Dec_Decode() 89 // src = p->bufs[BCJ2_STREAM_MAIN];
in Bcj2Dec_Decode() 100 if (p->bufs[BCJ2_STREAM_RC] == p->lims[BCJ2_STREAM_RC])
in Bcj2Dec_Decode() 107 p->code = (p->code << 8) | *(p->bufs[BCJ2_STREAM_RC])++;
in Bcj2Dec_Decode() 110 const Byte *src = p->bufs[BCJ2_STREAM_MAIN];
in Bcj2Dec_Decode() 179 const SizeT num = (SizeT)(src - p->bufs[BCJ2_STREAM_MAIN]);
in Bcj2Dec_Decode() 180 p->bufs[BCJ2_STREAM_MAI in Bcj2Dec_Decode() [all...] |