Home
last modified time | relevance | path

Searched refs:numToRead (Results 1 – 6 of 6) sorted by relevance

/external/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
DInfiniteRecording.h37 size_t numToRead = std::min(count, mMaxSamples); in readFrom() local
38 numToRead = std::min(numToRead, maxPosition - position); in readFrom()
39 if (numToRead == 0) return 0; in readFrom()
42 const size_t firstReadSize = std::min(numToRead, mMaxSamples - offset); // till end in readFrom()
44 if (firstReadSize < numToRead) { in readFrom()
46 std::copy(&mData[0], &mData[numToRead - firstReadSize], &buffer[firstReadSize]); in readFrom()
48 return numToRead; in readFrom()
/external/deqp/framework/delibs/decpp/
DdeBlockBuffer.hpp246 int numToRead = de::min(numElements, numUsedInBlock-m_readPos); in readFromCurrentBlock() local
248 DE_ASSERT(numToRead > 0); in readFromCurrentBlock()
250 for (int ndx = 0; ndx < numToRead; ndx++) in readFromCurrentBlock()
253 m_readPos += numToRead; in readFromCurrentBlock()
263 return numToRead; in readFromCurrentBlock()
DdeBlockBuffer.cpp77 int numToRead = rnd.getInt(1, DE_LENGTH_OF_ARRAY(tmpBuf)); in run() local
78 int numRead = m_buffer.tryRead(numToRead, &tmpBuf[0]); in run()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/tar/
DTarArchiveInputStream.java595 public int read(final byte[] buf, final int offset, int numToRead) throws IOException { in read() argument
606 numToRead = Math.min(numToRead, available()); in read()
608 totalRead = is.read(buf, offset, numToRead); in read()
611 if (numToRead > 0) { in read()
/external/deqp/execserver/
DxsExecutionServer.cpp83 size_t numToRead = (size_t)de::min(src.getNumElements(), (int)numBytesLeft); in read() local
85 if (numToRead > 0) in read()
88 m_buffer.resize(curBufPos+numToRead); in read()
89 src.popBack(&m_buffer[curBufPos], (int)numToRead); in read()
/external/deqp/execserver/tools/
DxsTest.cpp1016 …int numToRead = 1 + deRandom_getUint32(&rnd) % deMin(dataSize-curPos, DE_LENGTH_OF_ARRAY(block)…
1018 deFileResult result = deFile_read(file, block, numToRead, &numRead);
1021 DE_VERIFY((int)numRead == numToRead);
1022 DE_VERIFY(deMemCmp(block, &data[curPos], numToRead) == 0);
1024 curPos += numToRead;