Lines Matching refs:remainder
1913 parse_buffer_and_add_events(const char *buffer, int bufsize, vfs_context_t ctx, long *remainder)
2002 // if the last event wasn't complete, set the remainder
2005 *remainder = (long)((buffer+bufsize) - event_start);
2026 long offset=0, remainder;
2058 error = parse_buffer_and_add_events(write_buffer, offset+count, ctx, &remainder);
2064 // if there's any remainder, copy it down to the beginning
2066 // through the loop. note that the remainder always starts
2069 if (remainder != 0) {
2070 // printf("fsevents: write: an event spanned a %d byte boundary. remainder: %ld\n",
2071 // WRITE_BUFFER_SIZE, remainder);
2072 memmove(write_buffer, (write_buffer+count+offset) - remainder, remainder);
2073 offset = remainder;