Lines Matching refs:BUFSIZE
174 #define BUFSIZE 4096 macro
189 stream = pb_ostream_from_buffer(buffer, BUFSIZE); in do_static_encode()
191 assert(stream.bytes_written <= BUFSIZE); in do_static_encode()
205 size_t max_size = BUFSIZE - 32 - *msglen; in do_protobuf_noise()
209 uint8_t *tmp = malloc_with_check(BUFSIZE); in do_protobuf_noise()
210 size_t s = rand_fill_protobuf(tmp, rand_len(max_size), BUFSIZE - *msglen, 512); in do_protobuf_noise()
219 size_t s = rand_fill_protobuf(buffer + *msglen, rand_len(max_size), BUFSIZE - *msglen, 512); in do_protobuf_noise()
276 uint8_t *buf2 = malloc_with_check(BUFSIZE); in do_static_roundtrip()
277 uint8_t *buf3 = malloc_with_check(BUFSIZE); in do_static_roundtrip()
291 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_static_roundtrip()
304 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_static_roundtrip()
323 uint8_t *buf2 = malloc_with_check(BUFSIZE); in do_pointer_roundtrip()
324 uint8_t *buf3 = malloc_with_check(BUFSIZE); in do_pointer_roundtrip()
338 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_pointer_roundtrip()
351 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_pointer_roundtrip()
370 uint8_t *buffer = malloc_with_check(BUFSIZE); in run_iteration()
374 rand_fill(buffer, BUFSIZE); in run_iteration()
392 rand_mess(buffer, BUFSIZE); in run_iteration()
396 msglen = rand_int(0, BUFSIZE); in run_iteration()