Lines Matching refs:nread
43 static void after_read(uv_stream_t*, ssize_t nread, const uv_buf_t* buf);
81 ssize_t nread, in after_read() argument
88 if (nread < 0) { in after_read()
90 ASSERT_EQ(nread, UV_EOF); in after_read()
100 if (nread == 0) { in after_read()
112 for (i = 0; i < nread; i++) { 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()
137 wr->buf = uv_buf_init(buf->base, nread); in after_read()
230 ssize_t nread, in on_recv() argument
237 if (nread == 0) { in on_recv()
242 ASSERT_GT(nread, 0); in on_recv()
247 sndbuf = uv_buf_init(rcvbuf->base, nread); in on_recv()