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.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()
62 return totalRead < 1 ? -1 : totalRead; in read()
DASN1InputStream.java405 int totalRead = 0; in getBMPCharBuffer() local
406 while (totalRead < len) in getBMPCharBuffer()
418 buf[totalRead++] = (char)((ch1 << 8) | (ch2 & 0xff)); in getBMPCharBuffer()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DConstructedOctetStream.java41 int totalRead = 0; in read() local
45 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); in read()
49 totalRead += numRead; in read()
51 if (totalRead == len) in read()
53 return totalRead; in read()
63 return totalRead < 1 ? -1 : totalRead; in read()
DASN1InputStream.java414 int totalRead = 0; in getBMPCharBuffer() local
415 while (totalRead < len) in getBMPCharBuffer()
427 buf[totalRead++] = (char)((ch1 << 8) | (ch2 & 0xff)); in getBMPCharBuffer()
/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/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/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/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/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/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()
/external/u-boot/fs/yaffs2/
Dyaffsfs.c1075 int totalRead = 0; in yaffsfs_do_read() local
1091 totalRead = -1; in yaffsfs_do_read()
1095 totalRead = -1; in yaffsfs_do_read()
1098 totalRead = -1; in yaffsfs_do_read()
1122 totalRead = -1; in yaffsfs_do_read()
1143 totalRead += nRead; in yaffsfs_do_read()
1163 if (totalRead >= 0) in yaffsfs_do_read()
1164 fd->position = startPos + totalRead; in yaffsfs_do_read()
1173 return (totalRead >= 0) ? totalRead : -1; in yaffsfs_do_read()