Lines Matching refs:readbytes
343 size_t *readbytes, int *fin) in test_single_copy_read() argument
348 *readbytes = 0; in test_single_copy_read()
361 *readbytes += rec_len; in test_single_copy_read()
381 size_t readbytes = 0, avail = 0; in test_rstream_simple() local
399 &readbytes, &fin)) in test_rstream_simple()
401 || !TEST_size_t_eq(readbytes, 0) in test_rstream_simple()
409 &readbytes, &fin)) in test_rstream_simple()
411 || !TEST_size_t_eq(readbytes, 1) in test_rstream_simple()
426 &readbytes, &fin)) in test_rstream_simple()
428 || !TEST_size_t_eq(readbytes, 15) in test_rstream_simple()
437 || !TEST_true(read_fn(rstream, buf, 2, &readbytes, &fin)) in test_rstream_simple()
439 || !TEST_size_t_eq(readbytes, 2) in test_rstream_simple()
441 || !TEST_true(read_fn(rstream, buf + 2, 12, &readbytes, &fin)) in test_rstream_simple()
443 || !TEST_size_t_eq(readbytes, 12) in test_rstream_simple()
453 || !TEST_true(read_fn(rstream, buf + 14, 5, &readbytes, &fin)) in test_rstream_simple()
455 || !TEST_size_t_eq(readbytes, 5) in test_rstream_simple()
458 &readbytes, &fin)) in test_rstream_simple()
460 || !TEST_size_t_eq(readbytes, sizeof(buf) - 14 - 5) in test_rstream_simple()
463 || !TEST_true(read_fn(rstream, buf, sizeof(buf), &readbytes, &fin)) in test_rstream_simple()
465 || !TEST_size_t_eq(readbytes, 0)) in test_rstream_simple()
484 size_t readbytes = 0; in test_rstream_random() local
538 &readbytes, &fin))) in test_rstream_random()
542 &readbytes, &fin))) { in test_rstream_random()
545 if (!TEST_size_t_ge(readbytes, queued_min - read_off) in test_rstream_random()
546 || !TEST_size_t_le(readbytes + read_off, data_size) in test_rstream_random()
548 && !TEST_mem_eq(read_buf, readbytes, bulk_data + read_off, in test_rstream_random()
549 readbytes))) in test_rstream_random()
551 read_off += readbytes; in test_rstream_random()
578 &readbytes, &fin))) in test_rstream_random()
582 &readbytes, &fin))) { in test_rstream_random()
585 if (!TEST_size_t_eq(readbytes, 0) || !TEST_true(fin)) in test_rstream_random()