Searched refs:getNumFree (Results 1 – 7 of 7) sorted by relevance
55 bool canWrite = writePos < dataSize && buffer.getNumFree() > 0; in RingBuffer_selfTest()59 DE_TEST_ASSERT(buffer.getNumFree() == bufSize - (writePos-readPos)); in RingBuffer_selfTest()77 int numBytes = rnd.getInt(1, de::min(dataSize-writePos, buffer.getNumFree())); in RingBuffer_selfTest()
46 int getNumFree (void) const { return m_size - m_numElements; } in getNumFree() function in de::RingBuffer124 DE_ASSERT(getNumFree() > 0); in pushFront()133 DE_ASSERT(de::inRange(count, 0, getNumFree())); in pushFront()
196 if (messageBuffer.getNumFree() < minBytesAvailable) in pollBuffer()199 const int maxMsgSize = de::min((int)m_dataMsgTmpBuf.size(), messageBuffer.getNumFree()); in pollBuffer()232 if (messageBuffer.getNumFree() < (int)buf.size()) in writeMessage()
332 m_bufferOut.getNumFree() >= MESSAGE_HEADER_SIZE) in pollKeepAlives()344 size_t maxLen = de::min(m_sendRecvTmpBuf.size(), (size_t)m_bufferIn.getNumFree()); in receive()
137 if (m_callQueue.getNumFree() == 0) in enqueue()
68 if (m_buf.getNumFree() < (int)numBytes) in feed()
85 if (m_buf.getNumFree() < numBytes) in feed()