Lines Matching defs:buf
477 uv_buf_t buf;
501 buf = handle->tcp.conn.read_buffer;
504 buf.base = (char*) &uv_zero_;
505 buf.len = 0;
517 (WSABUF*)&buf,
1003 uv_buf_t buf;
1016 buf = (handle->flags & UV_HANDLE_ZERO_READ) ?
1030 &buf);
1040 /* Read again only if bytes == buf.len */
1051 buf.base = 0;
1052 buf.len = 0;
1061 buf = uv_buf_init(NULL, 0);
1062 handle->alloc_cb((uv_handle_t*) handle, 65536, &buf);
1063 if (buf.base == NULL || buf.len == 0) {
1064 handle->read_cb((uv_stream_t*) handle, UV_ENOBUFS, &buf);
1067 assert(buf.base != NULL);
1071 (WSABUF*)&buf,
1079 handle->read_cb((uv_stream_t*)handle, bytes, &buf);
1080 /* Read again only if bytes == buf.len */
1081 if (bytes < buf.len) {
1089 handle->read_cb((uv_stream_t*)handle, UV_EOF, &buf);
1096 handle->read_cb((uv_stream_t*)handle, 0, &buf);
1111 &buf);