Lines Matching refs:numElements
57 void write (int numElements, const T* elements);
58 int tryWrite (int numElements, const T* elements);
62 void read (int numElements, T* elements);
63 int tryRead (int numElements, T* elements);
72 int writeToCurrentBlock (int numElements, const T* elements, bool blocking);
73 int readFromCurrentBlock(int numElements, T* elements, bool blocking);
175 int BlockBuffer<T>::writeToCurrentBlock (int numElements, const T* elements, bool blocking) in writeToCurrentBlock() argument
177 DE_ASSERT(numElements > 0 && elements != DE_NULL); in writeToCurrentBlock()
202 int numToWrite = de::min(numElements, m_blockSize-m_writePos); in writeToCurrentBlock()
218 int BlockBuffer<T>::readFromCurrentBlock (int numElements, T* elements, bool blocking) in readFromCurrentBlock() argument
220 DE_ASSERT(numElements > 0 && elements != DE_NULL); in readFromCurrentBlock()
246 int numToRead = de::min(numElements, numUsedInBlock-m_readPos); in readFromCurrentBlock()
267 int BlockBuffer<T>::tryWrite (int numElements, const T* elements) in tryWrite() argument
271 DE_ASSERT(numElements > 0 && elements != DE_NULL); in tryWrite()
279 while (numWritten < numElements) in tryWrite()
281 …int ret = writeToCurrentBlock(numElements-numWritten, elements+numWritten, false /* non-blocking *… in tryWrite()
295 void BlockBuffer<T>::write (int numElements, const T* elements) in write() argument
297 DE_ASSERT(numElements > 0 && elements != DE_NULL); in write()
305 while (numWritten < numElements) in write()
306 …numWritten += writeToCurrentBlock(numElements-numWritten, elements+numWritten, true /* blocking */… in write()
348 int BlockBuffer<T>::tryRead (int numElements, T* elements) in tryRead() argument
358 while (numRead < numElements) in tryRead()
360 int ret = readFromCurrentBlock(numElements-numRead, &elements[numRead], false /* non-blocking */); in tryRead()
374 void BlockBuffer<T>::read (int numElements, T* elements) in read() argument
376 DE_ASSERT(numElements > 0 && elements != DE_NULL); in read()
384 while (numRead < numElements) in read()
385 numRead += readFromCurrentBlock(numElements-numRead, &elements[numRead], true /* blocking */); in read()