Home
last modified time | relevance | path

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

/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/
DLimitedInputStream.java28 private long numToRead; field in LimitedInputStream
40 public LimitedInputStream(InputStream in, long numToRead) { in LimitedInputStream() argument
42 if (numToRead < 0) { in LimitedInputStream()
43 throw new IllegalArgumentException("numToRead must be >= 0: " + numToRead); in LimitedInputStream()
45 this.numToRead = numToRead; in LimitedInputStream()
63 if (numToRead == 0) { in read()
66 int maxRead = (int) Math.min(len, numToRead); in read()
69 numToRead -= numRead; in read()
/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/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;