Lines Matching defs:buf
703 uv_buf_t buf;
736 /* Windows sends a lot of events that we're not interested in, so buf will be
738 buf = uv_null_buf_;
753 &buf);
863 &buf);
909 buf = uv_buf_init(NULL, 0);
910 handle->alloc_cb((uv_handle_t*) handle, 1024, &buf);
911 if (buf.base == NULL || buf.len == 0) {
912 handle->read_cb((uv_stream_t*) handle, UV_ENOBUFS, &buf);
915 assert(buf.base != NULL);
918 buf.base[buf_used++] = handle->tty.rd.last_key[handle->tty.rd.last_key_offset++];
921 if ((size_t) buf_used == buf.len) {
922 handle->read_cb((uv_stream_t*) handle, buf_used, &buf);
923 buf = uv_null_buf_;
943 handle->read_cb((uv_stream_t*) handle, buf_used, &buf);
962 uv_buf_t buf;
967 buf = handle->tty.rd.read_line_buffer;
980 &buf);
987 handle->read_cb((uv_stream_t*) handle, bytes, &buf);
1710 uv_buf_t buf = bufs[i];
1713 for (j = 0; j < buf.len; j++) {
1714 unsigned char c = buf.base[j];
1758 /* Patch buf offset so this character will be parsed again as a start