Lines Matching refs:base
103 buf->base = malloc(suggested_size); in on_alloc()
155 free(buf->base); in on_read()
161 free(buf->base); in on_read()
175 ASSERT_NOT_NULL(buf->base); in on_read()
193 ASSERT_MEM_EQ("hello\n", buf->base, nread); in on_read()
201 } else if (memcmp("accepted_connection\n", buf->base, nread) == 0) { in on_read()
209 free(buf->base); in on_read()
224 free(buf->base); in on_read_listen_after_bound_twice()
230 free(buf->base); in on_read_listen_after_bound_twice()
243 ASSERT_NOT_NULL(buf->base); in on_read_listen_after_bound_twice()
276 free(buf->base); in on_read_listen_after_bound_twice()
332 buf->base = malloc(suggested_size); in on_read_alloc()
339 ASSERT_MEM_EQ("hello again\n", buf->base, nread); in on_tcp_read()
341 free(buf->base); in on_tcp_read()
361 free(buf->base); in on_read_connection()
367 free(buf->base); in on_read_connection()
381 ASSERT_NOT_NULL(buf->base); in on_read_connection()
394 ASSERT_MEM_EQ("hello\n", buf->base, nread); in on_read_connection()
405 free(buf->base); in on_read_connection()
413 free(buf->base); in on_read_send_zero()
578 free(buf->base); in on_tcp_child_process_read()
587 ASSERT_MEM_EQ("world\n", buf->base, nread); in on_tcp_child_process_read()
589 free(buf->base); in on_tcp_child_process_read()