Home | History | Annotate | Download | only in decpp

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