Lines Matching defs:buf
1769 uv_buf_t buf) {
1776 handle->read_cb((uv_stream_t*) handle, UV_EOF, &buf);
1781 uv_buf_t buf) {
1788 handle->read_cb((uv_stream_t*)handle, uv_translate_sys_error(error), &buf);
1793 int error, uv_buf_t buf) {
1795 uv__pipe_read_eof(loop, handle, buf);
1797 uv__pipe_read_error(loop, handle, error, buf);
1849 uv_buf_t buf;
1852 buf = uv_buf_init(NULL, 0);
1853 handle->alloc_cb((uv_handle_t*) handle, suggested_bytes, &buf);
1854 if (buf.base == NULL || buf.len == 0) {
1855 handle->read_cb((uv_stream_t*) handle, UV_ENOBUFS, &buf);
1863 if (max_bytes > buf.len)
1864 max_bytes = buf.len;
1867 if (!ReadFile(handle->handle, buf.base, max_bytes, &bytes_read, NULL)) {
1868 uv__pipe_read_error_or_eof(loop, handle, GetLastError(), buf);
1873 handle->read_cb((uv_stream_t*) handle, bytes_read, &buf);