Lines Matching refs:written

69     size_t written;  in test_WPACKET_init()  local
84 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_init()
85 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_init()
92 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_init()
93 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_init()
100 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_init()
101 || !TEST_mem_eq(buf->data, written, simple3, sizeof(simple3))) in test_WPACKET_init()
125 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_init()
126 || !TEST_mem_eq(sbuf, written, fixed, sizeof(sbuf)) in test_WPACKET_init()
134 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_init()
135 || !TEST_mem_eq(sbuf, written, alloc, sizeof(alloc))) in test_WPACKET_init()
144 size_t written; in test_WPACKET_set_max_size() local
181 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_set_max_size()
182 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_set_max_size()
191 size_t written; in test_WPACKET_start_sub_packet() local
204 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_start_sub_packet()
205 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_start_sub_packet()
214 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_start_sub_packet()
215 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_start_sub_packet()
231 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_start_sub_packet()
232 || !TEST_mem_eq(buf->data, written, nestedsub, sizeof(nestedsub))) in test_WPACKET_start_sub_packet()
244 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_start_sub_packet()
245 || !TEST_mem_eq(buf->data, written, seqsub, sizeof(seqsub))) in test_WPACKET_start_sub_packet()
261 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_start_sub_packet()
262 || !TEST_mem_eq(buf->data, written, nestedsub, sizeof(nestedsub)) in test_WPACKET_start_sub_packet()
273 size_t written; in test_WPACKET_set_flags() local
282 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_set_flags()
283 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_set_flags()
295 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_set_flags()
296 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_set_flags()
303 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_set_flags()
304 || !TEST_size_t_eq(written, 0)) in test_WPACKET_set_flags()
313 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_set_flags()
314 || !TEST_mem_eq(buf->data, written, empty, sizeof(empty))) in test_WPACKET_set_flags()
324 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_set_flags()
325 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_set_flags()
333 size_t written; in test_WPACKET_allocate_bytes() local
342 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_allocate_bytes()
343 || !TEST_mem_eq(buf->data, written, alloc, sizeof(alloc))) in test_WPACKET_allocate_bytes()
353 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_allocate_bytes()
354 || !TEST_mem_eq(buf->data, written, submem, sizeof(submem))) in test_WPACKET_allocate_bytes()
363 size_t written; in test_WPACKET_memcpy() local
369 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_memcpy()
370 || !TEST_mem_eq(buf->data, written, alloc, sizeof(alloc))) in test_WPACKET_memcpy()
377 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_memcpy()
378 || !TEST_mem_eq(buf->data, written, submem, sizeof(submem))) in test_WPACKET_memcpy()
390 size_t written[2]; in test_WPACKET_init_der() local
411 || !TEST_true(WPACKET_get_total_written(&pkt, &written[0])) in test_WPACKET_init_der()
412 || !TEST_mem_eq(WPACKET_get_curr(&pkt), written[0], simpleder, in test_WPACKET_init_der()
438 || !TEST_true(WPACKET_get_total_written(&pkt, &written[i]))) in test_WPACKET_init_der()
447 if (!TEST_size_t_eq(written[0], written[1]) in test_WPACKET_init_der()
448 || !TEST_mem_eq(WPACKET_get_curr(&pkt), written[1], testdata2, in test_WPACKET_init_der()
460 size_t written, len; in test_WPACKET_quic() local
474 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_quic()
475 || !TEST_mem_eq(buf->data, written, quic1, sizeof(quic1))) in test_WPACKET_quic()
486 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_quic()
487 || !TEST_mem_eq(buf->data, written, quic2, sizeof(quic2))) in test_WPACKET_quic()
498 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_quic()
499 || !TEST_mem_eq(buf->data, written, quic3, sizeof(quic3))) in test_WPACKET_quic()
510 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_quic()
511 || !TEST_mem_eq(buf->data, written, quic4, sizeof(quic4))) in test_WPACKET_quic()
522 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_quic()
523 || !TEST_mem_eq(buf->data, written, quic5, sizeof(quic5))) in test_WPACKET_quic()
536 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_quic()
537 || !TEST_mem_eq(buf->data, written, quic6, sizeof(quic6))) in test_WPACKET_quic()
567 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_quic()
568 || !TEST_mem_eq(buf->data, written, quic7, sizeof(quic7))) in test_WPACKET_quic()
583 size_t i, written; in test_WPACKET_quic_vlint_random() local
615 || !TEST_true(WPACKET_get_total_written(&pkt, &written))) in test_WPACKET_quic_vlint_random()
618 if (!TEST_true(PACKET_buf_init(&read_pkt, (unsigned char *)buf->data, written)) in test_WPACKET_quic_vlint_random()