Home | History | Annotate | Download | only in src

Lines Matching full:capacity

34 ESR_ReturnCode CircularBufferCreate(size_t capacity, const LCHAR* mtag, CircularBuffer** buffer)
37 if (buffer == NULL || capacity <= 0)
40 Interface = (CircularBuffer *) MALLOC(sizeof(CircularBuffer) + capacity, mtag);
43 Interface->capacity = capacity;
68 nbRead = buffer->capacity - buffer-> readIdx;
74 if (buffer->readIdx == buffer->capacity)
101 if (buffer->readIdx >= buffer->capacity)
102 buffer->readIdx -= buffer->capacity;
113 size_t available = buffer->capacity - buffer->size;
129 nbWritten = buffer->capacity - buffer->writeIdx;
134 if (buffer->writeIdx == buffer->capacity)
151 size_t available = buffer->capacity - buffer->size;