/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | BoundedInputStream.java | 30 private long bytesRemaining; field in BoundedInputStream 40 bytesRemaining = size; in BoundedInputStream() 45 if (bytesRemaining > 0) { in read() 46 --bytesRemaining; in read() 54 if (bytesRemaining == 0) { in read() 58 if (bytesToRead > bytesRemaining) { in read() 59 bytesToRead = (int) bytesRemaining; in read() 63 bytesRemaining -= bytesRead; in read()
|
D | ChecksumVerifyingInputStream.java | 32 private long bytesRemaining; field in ChecksumVerifyingInputStream 41 this.bytesRemaining = size; in ChecksumVerifyingInputStream() 52 if (bytesRemaining <= 0) { in read() 58 --bytesRemaining; in read() 60 if (bytesRemaining == 0 && expectedChecksum != checksum.getValue()) { in read() 88 bytesRemaining -= ret; in read() 90 if (bytesRemaining <= 0 && expectedChecksum != checksum.getValue()) { in read()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/ |
D | BoundedSeekableByteChannelInputStream.java | 29 private long bytesRemaining; field in BoundedSeekableByteChannelInputStream 34 this.bytesRemaining = size; in BoundedSeekableByteChannelInputStream() 44 if (bytesRemaining > 0) { in read() 45 --bytesRemaining; in read() 57 if (bytesRemaining == 0) { in read() 61 if (bytesToRead > bytesRemaining) { in read() 62 bytesToRead = (int) bytesRemaining; in read() 76 bytesRemaining -= bytesRead; in read()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | Http1xStream.java | 271 private long bytesRemaining; field in Http1xStream.FixedLengthSink 273 private FixedLengthSink(long bytesRemaining) { in FixedLengthSink() argument 274 this.bytesRemaining = bytesRemaining; in FixedLengthSink() 284 if (byteCount > bytesRemaining) { in write() 285 throw new ProtocolException("expected " + bytesRemaining in write() 289 bytesRemaining -= byteCount; in write() 300 if (bytesRemaining > 0) throw new ProtocolException("unexpected end of stream"); in close() 379 private long bytesRemaining; field in Http1xStream.FixedLengthSource 382 bytesRemaining = length; in FixedLengthSource() 383 if (bytesRemaining == 0) { in FixedLengthSource() [all …]
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/ |
D | Http1xStream.java | 273 private long bytesRemaining; field in Http1xStream.FixedLengthSink 275 private FixedLengthSink(long bytesRemaining) { in FixedLengthSink() argument 276 this.bytesRemaining = bytesRemaining; in FixedLengthSink() 286 if (byteCount > bytesRemaining) { in write() 287 throw new ProtocolException("expected " + bytesRemaining in write() 291 bytesRemaining -= byteCount; in write() 302 if (bytesRemaining > 0) throw new ProtocolException("unexpected end of stream"); in close() 381 private long bytesRemaining; field in Http1xStream.FixedLengthSource 384 bytesRemaining = length; in FixedLengthSource() 385 if (bytesRemaining == 0) { in FixedLengthSource() [all …]
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/ |
D | AbstractLZ77CompressorInputStream.java | 103 private long bytesRemaining; field in AbstractLZ77CompressorInputStream 139 bytesRemaining = 0; in AbstractLZ77CompressorInputStream() 206 bytesRemaining = length; in startLiteral() 214 return bytesRemaining > 0; in hasMoreDataInBlock() 238 final int reallyTryToRead = Math.min((int) Math.min(bytesToRead, bytesRemaining), in tryToReadLiteral() 248 bytesRemaining -= reallyTryToRead; in tryToReadLiteral() 277 bytesRemaining = length; in startBackReference() 299 int copy = Math.min((int) Math.min(bytesToCopy, bytesRemaining), in tryToCopy() 326 bytesRemaining -= copy; in tryToCopy()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/Native/ |
D | PublicsStream.cpp | 63 if (Reader.bytesRemaining() < in reload() 91 if (Reader.bytesRemaining() > 0) { in reload() 98 if (Reader.bytesRemaining() > 0) in reload()
|
D | PDBStringTable.cpp | 39 assert(Reader.bytesRemaining() == 0); in readHeader() 54 assert(Reader.bytesRemaining() == 0); in readStrings() 81 assert(Reader.bytesRemaining() == 0); in readEpilogue() 106 assert(Reader.bytesRemaining() == 0); in reload()
|
D | PDBStringTableBuilder.cpp | 144 assert(Writer.bytesRemaining() == 0); in writeHeader() 152 assert(Writer.bytesRemaining() == 0); in writeStrings() 180 assert(Writer.bytesRemaining() == 0); in writeHashTable() 187 assert(Writer.bytesRemaining() == 0); in writeEpilogue()
|
D | ModuleDebugStream.cpp | 59 SymbolReader.readArray(SymbolArray, SymbolReader.bytesRemaining())) in reload() 64 SubsectionsReader.bytesRemaining())) in reload() 72 if (Reader.bytesRemaining() > 0) in reload()
|
/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/ |
D | DeltaFriendlyOldBlobSizeLimiter.java | 73 long bytesRemaining = maxSizeBytes - oldFile.length(); in getModifiedRecommendations() local 82 if (bytesRemaining - extraBytesConsumed >= 0) { in getModifiedRecommendations() 85 bytesRemaining -= extraBytesConsumed; in getModifiedRecommendations()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | TiledWorld.java | 86 final int bytesRemaining = byteStream.available(); in parseInput() local 87 assert bytesRemaining >= totalTiles; in parseInput() 88 if (bytesRemaining >= totalTiles) { in parseInput()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ObjectYAML/ |
D | CodeViewYAMLTypeHashing.cpp | 59 while (Reader.bytesRemaining() != 0) { in fromDebugH() 64 assert(Reader.bytesRemaining() == 0); in fromDebugH() 86 assert(Writer.bytesRemaining() == 0); in toDebugH()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/ |
D | DebugCrossImpSubsection.cpp | 30 if (Reader.bytesRemaining() < sizeof(CrossModuleImport)) in operator ()() 36 if (Reader.bytesRemaining() < Item.Header->Count * sizeof(uint32_t)) in operator ()() 47 return Reader.readArray(References, Reader.bytesRemaining()); in initialize()
|
D | DebugFrameDataSubsection.cpp | 19 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) in initialize() 23 uint32_t Count = Reader.bytesRemaining() / sizeof(FrameData); in initialize()
|
D | DebugCrossExSubsection.cpp | 21 if (Reader.bytesRemaining() % sizeof(CrossModuleExport) != 0) in initialize() 26 uint32_t Size = Reader.bytesRemaining() / sizeof(CrossModuleExport); in initialize()
|
D | CodeViewRecordIO.cpp | 49 Optional<uint32_t> Min = Limits.front().bytesRemaining(Offset); in maxFieldLength() 51 Optional<uint32_t> ThisMin = X.bytesRemaining(Offset); in maxFieldLength() 69 if (Reader->bytesRemaining() == 0) in skipPadding() 86 if (auto EC = Reader->readBytes(Bytes, Reader->bytesRemaining())) in mapByteVectorTail()
|
D | DebugInlineeLinesSubsection.cpp | 51 if (auto EC = Reader.readArray(Lines, Reader.bytesRemaining())) in initialize() 54 assert(Reader.bytesRemaining() == 0); in initialize()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | BinaryStreamReader.cpp | 101 return readStreamRef(Ref, bytesRemaining()); in readStreamRef() 105 if (bytesRemaining() < Length) in readStreamRef() 119 if (Amount > bytesRemaining()) in skip()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | BinaryStreamTest.cpp | 509 EXPECT_EQ(0U, Reader.bytesRemaining()); in TEST_F() 518 EXPECT_EQ(Bytes.size(), Reader.bytesRemaining()); in TEST_F() 557 ASSERT_EQ(0U, Reader.bytesRemaining()); in TEST_F() 578 ASSERT_EQ(0U, Reader.bytesRemaining()); in TEST_F() 584 ASSERT_EQ(0U, Reader.bytesRemaining()); in TEST_F() 610 ASSERT_EQ(0U, Reader.bytesRemaining()); in TEST_F() 643 EXPECT_EQ(0U, Reader.bytesRemaining()); in TEST_F() 667 ASSERT_EQ(0U, Reader.bytesRemaining()); in TEST_F() 684 ASSERT_EQ(0U, Reader.bytesRemaining()); in TEST_F() 700 EXPECT_EQ(5U, Writer.bytesRemaining()); in TEST_F() [all …]
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | RopeByteString.java | 807 int bytesRemaining = length; in readSkipInternal() local 808 while (bytesRemaining > 0) { in readSkipInternal() 811 if (bytesRemaining == length) { in readSkipInternal() 819 int count = Math.min(currentPieceRemaining, bytesRemaining); in readSkipInternal() 825 bytesRemaining -= count; in readSkipInternal() 829 return length - bytesRemaining; in readSkipInternal()
|
/external/llvm/lib/DebugInfo/PDB/Raw/ |
D | ModStream.cpp | 53 if (auto EC = LineReader.readArray(LineInfo, LineReader.bytesRemaining())) in reload() 61 if (Reader.bytesRemaining() > 0) in reload()
|
D | PublicsStream.cpp | 92 if (Reader.bytesRemaining() < sizeof(HeaderInfo) + sizeof(GSIHashHeader)) in reload() 155 if (Reader.bytesRemaining() > 0) in reload()
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/ |
D | DetectingViewer.java | 217 int bytesRemaining = BUFFER_SIZE; in filter() local 223 while (bytesRemaining > 0) { in filter() 224 int bytesRead = in.read(buffer, bufLen, bytesRemaining); in filter() 231 bytesRemaining -= bytesRead; in filter()
|
/external/llvm/lib/DebugInfo/CodeView/ |
D | StreamReader.cpp | 84 return readStreamRef(Ref, bytesRemaining()); in readStreamRef() 88 if (bytesRemaining() < Length) in readStreamRef()
|