Lines Matching refs:readIdx
66 if (buffer->readIdx >= buffer->writeIdx)
68 nbRead = buffer->capacity - buffer-> readIdx;
71 memcpy(data, bufferData + buffer->readIdx, nbRead);
73 buffer->readIdx += nbRead;
74 if (buffer->readIdx == buffer->capacity)
75 buffer->readIdx = 0;
81 memcpy(((unsigned char *) data) + nbRead, bufferData + buffer->readIdx, toRead);
83 buffer->readIdx += toRead;
100 buffer->readIdx += bufSize;
101 if (buffer->readIdx >= buffer->capacity)
102 buffer->readIdx -= buffer->capacity;
127 if (buffer->writeIdx >= buffer->readIdx)