Lines Matching defs:bytes
41 static void consume(evStream *str, size_t bytes);
223 consume(evStream *str, size_t bytes) {
224 while (bytes > 0U) {
225 if (bytes < (size_t)str->iovCur->iov_len) {
226 str->iovCur->iov_len -= bytes;
228 ((u_char *)str->iovCur->iov_base + bytes);
229 str->ioDone += bytes;
230 bytes = 0;
232 bytes -= str->iovCur->iov_len;
258 /* Dribble out some bytes on the stream. (Called by evDispatch().) */
262 int bytes;
266 bytes = writev(fd, str->iovCur, str->iovCurCount);
267 if (bytes > 0) {
270 consume(str, bytes);
272 if (bytes < 0 && errno != EINTR) {
281 /* Scoop up some bytes from the stream. (Called by evDispatch().) */
285 int bytes;
289 bytes = readv(fd, str->iovCur, str->iovCurCount);
290 if (bytes > 0) {
293 consume(str, bytes);
295 if (bytes == 0)