Searched refs:wpos (Results 1 – 1 of 1) sorted by relevance
141 int rpos = 0, wpos = 0; in readProcessedDataInStream() local184 if (rpos >= wpos) { in readProcessedDataInStream()187 amt = ::read(fd, cirBuf + rpos, wpos - rpos); in readProcessedDataInStream()206 if (rpos > wpos) { in readProcessedDataInStream()207 amt = ::write(toFd.get(), cirBuf + wpos, rpos - wpos); in readProcessedDataInStream()209 amt = ::write(toFd.get(), cirBuf + wpos, BUFFER_SIZE - wpos); in readProcessedDataInStream()217 wpos += amt; in readProcessedDataInStream()233 if (wpos >= BUFFER_SIZE) { in readProcessedDataInStream()234 wpos = 0; in readProcessedDataInStream()