Lines Matching refs:tmp_buf
2373 struct evbuffer *buf = NULL, *tmp_buf = NULL; in test_evbuffer_peek_first_gt() local
2378 tmp_buf = evbuffer_new(); in test_evbuffer_peek_first_gt()
2379 evbuffer_add_printf(tmp_buf, "Contents of chunk 100\n"); in test_evbuffer_peek_first_gt()
2380 evbuffer_add_buffer(buf, tmp_buf); in test_evbuffer_peek_first_gt()
2381 evbuffer_add_printf(tmp_buf, "Contents of chunk 1\n"); in test_evbuffer_peek_first_gt()
2382 evbuffer_add_buffer(buf, tmp_buf); in test_evbuffer_peek_first_gt()
2402 if (tmp_buf) in test_evbuffer_peek_first_gt()
2403 evbuffer_free(tmp_buf); in test_evbuffer_peek_first_gt()
2409 struct evbuffer *buf = NULL, *tmp_buf = NULL; in test_evbuffer_peek() local
2420 tmp_buf = evbuffer_new(); in test_evbuffer_peek()
2422 evbuffer_add_printf(tmp_buf, "Contents of chunk [%d]\n", i); in test_evbuffer_peek()
2423 evbuffer_add_buffer(buf, tmp_buf); in test_evbuffer_peek()
2478 i = evbuffer_peek(tmp_buf, -1, NULL, v, 20); in test_evbuffer_peek()
2482 i = evbuffer_peek(tmp_buf, 50, NULL, v, 20); in test_evbuffer_peek()
2513 if (tmp_buf) in test_evbuffer_peek()
2514 evbuffer_free(tmp_buf); in test_evbuffer_peek()
2529 struct evbuffer *buf = NULL, *buf_two = NULL, *tmp_buf = NULL; in test_evbuffer_freeze() local
2550 tmp_buf = evbuffer_new(); in test_evbuffer_freeze()
2551 tt_assert(tmp_buf); in test_evbuffer_freeze()
2555 evbuffer_add(tmp_buf, "xyz", 3); in test_evbuffer_freeze()
2587 r = evbuffer_add_buffer(buf, tmp_buf); in test_evbuffer_freeze()
2595 evbuffer_add(tmp_buf, "xyz", 3); in test_evbuffer_freeze()
2597 tt_assert(evbuffer_get_length(tmp_buf)); in test_evbuffer_freeze()
2598 len = evbuffer_get_length(tmp_buf); in test_evbuffer_freeze()
2599 evbuffer_write(tmp_buf, pair[0]); in test_evbuffer_freeze()
2620 evbuffer_add(tmp_buf, "xyz", 3); in test_evbuffer_freeze()
2621 tt_assert(evbuffer_get_length(tmp_buf)); in test_evbuffer_freeze()
2622 r = evbuffer_remove_buffer(buf, tmp_buf, 3); in test_evbuffer_freeze()
2626 r = evbuffer_prepend_buffer(buf, tmp_buf); in test_evbuffer_freeze()
2631 evbuffer_read(tmp_buf, pair[1], -1); in test_evbuffer_freeze()
2635 evbuffer_read(tmp_buf, pair[1], -1); in test_evbuffer_freeze()
2648 if (tmp_buf) in test_evbuffer_freeze()
2649 evbuffer_free(tmp_buf); in test_evbuffer_freeze()