Home
last modified time | relevance | path

Searched refs:totalRead (Results 1 – 15 of 15) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DConstructedOctetStream.java39 int totalRead = 0; in read() local
43 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); in read()
47 totalRead += numRead; in read()
49 if (totalRead == len) in read()
51 return totalRead; in read()
60 return totalRead < 1 ? -1 : totalRead; in read()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DConstructedOctetStream.java40 int totalRead = 0; in read() local
44 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); in read()
48 totalRead += numRead; in read()
50 if (totalRead == len) in read()
52 return totalRead; in read()
61 return totalRead < 1 ? -1 : totalRead; in read()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/
DConstructedOctetStream.java40 int totalRead = 0; in read() local
44 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); in read()
48 totalRead += numRead; in read()
50 if (totalRead == len) in read()
52 return totalRead; in read()
61 return totalRead < 1 ? -1 : totalRead; in read()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLBIOInputStream.java95 int totalRead = 0; in read() local
98 read = super.read(buffer, offset + totalRead, len - totalRead - offset); in read()
102 totalRead += read; in read()
103 } while (offset + totalRead < len); in read()
105 return totalRead == 0 ? -1 : totalRead; in read()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLBIOInputStream.java99 int totalRead = 0; in read() local
102 read = super.read(buffer, offset + totalRead, len - totalRead - offset); in read()
106 totalRead += read; in read()
107 } while (offset + totalRead < len); in read()
109 return totalRead == 0 ? -1 : totalRead; in read()
/external/protobuf/conformance/
Dconformance_nodejs.js110 function onEof(totalRead) { argument
111 if (totalRead == 0) {
121 var totalRead = 0;
122 while (totalRead < bytes) {
125 read = fs.readSync(process.stdin.fd, buf, totalRead, bytes - totalRead);
128 return onEof(totalRead)
135 totalRead += read;
/external/lzma/CPP/7zip/Compress/
DBcj2Coder.cpp380 size_t totalRead = _extraReadSizes[dec.state]; in Code() local
383 for (size_t i = 0; i < totalRead; i++) in Code()
397 UInt32 curSize = _bufsCurSizes[dec.state] - (UInt32)totalRead; in Code()
408 HRESULT res2 = inStreams[dec.state]->Read(_bufs[dec.state] + totalRead, curSize, &curSize); in Code()
413 totalRead += curSize; in Code()
417 while (totalRead < 4 && BCJ2_IS_32BIT_STREAM(dec.state)); in Code()
422 if (totalRead == 0) in Code()
429 unsigned extraSize = ((unsigned)totalRead & 3); in Code()
431 if (totalRead < 4) in Code()
436 totalRead -= extraSize; in Code()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/
DStreams.java89 int totalRead = 0; in readFully() local
90 while (totalRead < len) in readFully()
92 int numRead = inStr.read(buf, off + totalRead, len - totalRead); in readFully()
97 totalRead += numRead; in readFully()
99 return totalRead; in readFully()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/io/
DStreams.java91 int totalRead = 0; in readFully() local
92 while (totalRead < len) in readFully()
94 int numRead = inStr.read(buf, off + totalRead, len - totalRead); in readFully()
99 totalRead += numRead; in readFully()
101 return totalRead; in readFully()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/io/
DStreams.java91 int totalRead = 0; in readFully() local
92 while (totalRead < len) in readFully()
94 int numRead = inStr.read(buf, off + totalRead, len - totalRead); in readFully()
99 totalRead += numRead; in readFully()
101 return totalRead; in readFully()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/tar/
DTarArchiveInputStream.java596 int totalRead = 0; in read() local
608 totalRead = is.read(buf, offset, numToRead); in read()
610 if (totalRead == -1) { in read()
616 count(totalRead); in read()
617 entryOffset += totalRead; in read()
620 return totalRead; in read()
/external/skqp/tools/
Dremote_demo.cpp99 size_t totalRead = 0; in read_SkData() local
100 while (totalRead < size) { in read_SkData()
102 sizeRead = ::read(fd, &data[totalRead], size - totalRead); in read_SkData()
109 totalRead += sizeRead; in read_SkData()
/external/skia/tools/
Dremote_demo.cpp99 size_t totalRead = 0; in read_SkData() local
100 while (totalRead < size) { in read_SkData()
102 sizeRead = ::read(fd, &data[totalRead], size - totalRead); in read_SkData()
109 totalRead += sizeRead; in read_SkData()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/
DRedefineClassesTest.java161 int totalRead = 0; in getNewClassBytesClass() local
163 totalRead = newClassByteCodeFileInputStream.read(res); in getNewClassBytesClass()
172 if ( totalRead != newClassByteCodeSize) { // EOF is reached in getNewClassBytesClass()
176 logWriter.println("===> actually read: " + totalRead); in getNewClassBytesClass()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/dump/
DDumpArchiveInputStream.java468 int totalRead = 0; in read() local
489 totalRead += sz; in read()
521 entryOffset += totalRead; in read()
523 return totalRead; in read()