Home
last modified time | relevance | path

Searched refs:bytesRemaining (Results 1 – 25 of 66) sorted by relevance

123

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DBoundedInputStream.java30 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()
DChecksumVerifyingInputStream.java32 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/
DBoundedSeekableByteChannelInputStream.java29 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/
DHttp1xStream.java271 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/
DHttp1xStream.java273 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/
DAbstractLZ77CompressorInputStream.java103 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/
DPublicsStream.cpp63 if (Reader.bytesRemaining() < in reload()
91 if (Reader.bytesRemaining() > 0) { in reload()
98 if (Reader.bytesRemaining() > 0) in reload()
DPDBStringTable.cpp39 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()
DPDBStringTableBuilder.cpp144 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()
DModuleDebugStream.cpp59 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/
DDeltaFriendlyOldBlobSizeLimiter.java73 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/
DTiledWorld.java86 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/
DCodeViewYAMLTypeHashing.cpp59 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/
DDebugCrossImpSubsection.cpp30 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()
DDebugFrameDataSubsection.cpp19 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) in initialize()
23 uint32_t Count = Reader.bytesRemaining() / sizeof(FrameData); in initialize()
DDebugCrossExSubsection.cpp21 if (Reader.bytesRemaining() % sizeof(CrossModuleExport) != 0) in initialize()
26 uint32_t Size = Reader.bytesRemaining() / sizeof(CrossModuleExport); in initialize()
DCodeViewRecordIO.cpp49 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()
DDebugInlineeLinesSubsection.cpp51 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/
DBinaryStreamReader.cpp101 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/
DBinaryStreamTest.cpp509 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/
DRopeByteString.java807 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/
DModStream.cpp53 if (auto EC = LineReader.readArray(LineInfo, LineReader.bytesRemaining())) in reload()
61 if (Reader.bytesRemaining() > 0) in reload()
DPublicsStream.cpp92 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/
DDetectingViewer.java217 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/
DStreamReader.cpp84 return readStreamRef(Ref, bytesRemaining()); in readStreamRef()
88 if (bytesRemaining() < Length) in readStreamRef()

123