Lines Matching refs:buf
52 static void buf_alloc(uv_handle_t* tcp, size_t size, uv_buf_t* buf) { in buf_alloc() argument
54 buf->base = slab; in buf_alloc()
55 buf->len = sizeof(slab); in buf_alloc()
59 static void buf_free(const uv_buf_t* buf) { in buf_free() argument
78 uv_buf_t buf; in pinger_write_ping() local
81 buf = uv_buf_init(PING, sizeof(PING) - 1); in pinger_write_ping()
82 r = uv_udp_try_send(&pinger->udp, &buf, 1, in pinger_write_ping()
90 const uv_buf_t* buf, in pinger_read_cb() argument
102 ASSERT_EQ(buf->base[i], PING[pinger->state]); in pinger_read_cb()
114 if (buf && !(flags & UV_UDP_MMSG_CHUNK)) in pinger_read_cb()
115 buf_free(buf); in pinger_read_cb()