Lines Matching refs:buf
29 uv_buf_t buf; member
43 static void after_read(uv_stream_t*, ssize_t nread, const uv_buf_t* buf);
54 free(wr->buf.base); in after_write()
82 const uv_buf_t* buf) { in after_read() argument
92 free(buf->base); in after_read()
102 free(buf->base); in after_read()
113 if (buf->base[i] == 'Q') { in after_read()
114 if (i + 1 < nread && buf->base[i + 1] == 'S') { in after_read()
116 if (i + 2 < nread && buf->base[i + 2] == 'S') in after_read()
118 if (i + 2 < nread && buf->base[i + 2] == 'H') in after_read()
126 free(buf->base); in after_read()
137 wr->buf = uv_buf_init(buf->base, nread); in after_read()
139 if (uv_write(&wr->req, handle, &wr->buf, 1, after_write)) { in after_read()
155 uv_buf_t* buf) { in echo_alloc() argument
156 buf->base = malloc(suggested_size); in echo_alloc()
157 buf->len = suggested_size; in echo_alloc()
162 uv_buf_t* buf) { in slab_alloc() argument
165 buf->base = slab; in slab_alloc()
166 buf->len = sizeof(slab); in slab_alloc()