HomeSort by relevance Sort by last modified time
    Searched refs:writeIdx (Results 1 - 2 of 2) sorted by null

  /external/srec/shared/src/
CircularBuffer.c 66 if (buffer->readIdx >= buffer->writeIdx)
127 if (buffer->writeIdx >= buffer->readIdx)
129 nbWritten = buffer->capacity - buffer->writeIdx;
131 memcpy(bufferData + buffer->writeIdx, data, nbWritten);
133 buffer->writeIdx += nbWritten;
134 if (buffer->writeIdx == buffer->capacity)
135 buffer->writeIdx = 0;
141 memcpy(bufferData + buffer->writeIdx, ((unsigned char*) data) + nbWritten, toWrite);
143 buffer->writeIdx += toWrite;
  /external/srec/shared/include/
CircularBuffer.h 62 size_t writeIdx;
106 (buffer)->writeIdx = 0)

Completed in 388 milliseconds