Home
last modified time | relevance | path

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

12345

/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/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DAssetDataSource.java48 private long bytesRemaining; field in AssetDataSource
76 bytesRemaining = dataSpec.length; in open()
78 bytesRemaining = inputStream.available(); in open()
79 if (bytesRemaining == Integer.MAX_VALUE) { in open()
83 bytesRemaining = C.LENGTH_UNSET; in open()
92 return bytesRemaining; in open()
99 } else if (bytesRemaining == 0) { in read()
105 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read()
106 : (int) Math.min(bytesRemaining, readLength); in read()
113 if (bytesRemaining != C.LENGTH_UNSET) { in read()
[all …]
DTeeDataSource.java35 private long bytesRemaining; field in TeeDataSource
53 bytesRemaining = upstream.open(dataSpec); in open()
54 if (bytesRemaining == 0) { in open()
57 if (dataSpec.length == C.LENGTH_UNSET && bytesRemaining != C.LENGTH_UNSET) { in open()
59 dataSpec = dataSpec.subrange(0, bytesRemaining); in open()
63 return bytesRemaining; in open()
68 if (bytesRemaining == 0) { in read()
75 if (bytesRemaining != C.LENGTH_UNSET) { in read()
76 bytesRemaining -= bytesRead; in read()
DContentDataSource.java51 private long bytesRemaining; field in ContentDataSource
85 bytesRemaining = dataSpec.length; in open()
93 bytesRemaining = channelSize == 0 ? C.LENGTH_UNSET : channelSize - channel.position(); in open()
95 bytesRemaining = assetFileDescriptorLength - skipped; in open()
105 return bytesRemaining; in open()
112 } else if (bytesRemaining == 0) { in read()
118 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read()
119 : (int) Math.min(bytesRemaining, readLength); in read()
126 if (bytesRemaining != C.LENGTH_UNSET) { in read()
132 if (bytesRemaining != C.LENGTH_UNSET) { in read()
[all …]
DByteArrayDataSource.java31 private int bytesRemaining; field in ByteArrayDataSource
49 bytesRemaining = (int) ((dataSpec.length == C.LENGTH_UNSET) in open()
51 if (bytesRemaining <= 0 || readPosition + bytesRemaining > data.length) { in open()
57 return bytesRemaining; in open()
64 } else if (bytesRemaining == 0) { in read()
68 readLength = Math.min(readLength, bytesRemaining); in read()
71 bytesRemaining -= readLength; in read()
DRawResourceDataSource.java73 private long bytesRemaining; field in RawResourceDataSource
117 bytesRemaining = dataSpec.length; in open()
121 bytesRemaining = assetFileDescriptorLength == AssetFileDescriptor.UNKNOWN_LENGTH in open()
131 return bytesRemaining; in open()
138 } else if (bytesRemaining == 0) { in read()
144 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read()
145 : (int) Math.min(bytesRemaining, readLength); in read()
152 if (bytesRemaining != C.LENGTH_UNSET) { in read()
158 if (bytesRemaining != C.LENGTH_UNSET) { in read()
159 bytesRemaining -= bytesRead; in read()
DFileDataSource.java73 private long bytesRemaining; field in FileDataSource
90 bytesRemaining = dataSpec.length == C.LENGTH_UNSET ? file.length() - dataSpec.position in open()
92 if (bytesRemaining < 0) { in open()
102 return bytesRemaining; in open()
109 } else if (bytesRemaining == 0) { in read()
115 castNonNull(file).read(buffer, offset, (int) Math.min(bytesRemaining, readLength)); in read()
121 bytesRemaining -= bytesRead; 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/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/
DCacheDataSource.java369 private long bytesRemaining; field in CacheDataSource
564 bytesRemaining = dataSpec.length; in open()
566 bytesRemaining = ContentMetadata.getContentLength(cache.getContentMetadata(key)); in open()
567 if (bytesRemaining != C.LENGTH_UNSET) { in open()
568 bytesRemaining -= dataSpec.position; in open()
569 if (bytesRemaining <= 0) { in open()
575 return bytesRemaining; in open()
587 if (bytesRemaining == 0) { in read()
600 if (bytesRemaining != C.LENGTH_UNSET) { in read()
601 bytesRemaining -= bytesRead; in read()
[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/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeDataSource.java71 private long bytesRemaining; field in FakeDataSource
140 bytesRemaining = totalLength - dataSpec.position; in open()
141 return fakeData.isSimulatingUnknownLength() ? C.LENGTH_UNSET : bytesRemaining; in open()
143 bytesRemaining = dataSpec.length; in open()
144 return bytesRemaining; in open()
153 if (currentSegmentIndex == fakeData.getSegments().size() || bytesRemaining == 0) { in read()
169 readLength = (int) Math.min(readLength, bytesRemaining); in read()
179 bytesRemaining -= readLength; in read()
/external/exoplayer/tree/extensions/cronet/src/main/java/com/google/android/exoplayer2/ext/cronet/
DCronetDataSource.java135 private long bytesRemaining; field in CronetDataSource
480 bytesRemaining = dataSpec.length; in open()
482 bytesRemaining = getContentLength(responseInfo); in open()
487 bytesRemaining = dataSpec.length; in open()
493 return bytesRemaining; in open()
502 } else if (bytesRemaining == 0) { in read()
519 bytesRemaining = 0; in read()
536 if (bytesRemaining != C.LENGTH_UNSET) { in read()
537 bytesRemaining -= bytesRead; in read()
576 } else if (bytesRemaining == 0) { in read()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DDebugFrameDataSubsection.cpp16 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) { in initialize()
21 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) in initialize()
25 uint32_t Count = Reader.bytesRemaining() / sizeof(FrameData); in initialize()
/external/llvm-project/llvm/lib/DebugInfo/CodeView/
DDebugFrameDataSubsection.cpp16 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) { in initialize()
21 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) in initialize()
25 uint32_t Count = Reader.bytesRemaining() / sizeof(FrameData); in initialize()
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/
DPublicsStream.cpp62 if (Reader.bytesRemaining() < in reload()
90 if (Reader.bytesRemaining() > 0) { in reload()
97 if (Reader.bytesRemaining() > 0) in reload()
DPDBStringTable.cpp38 assert(Reader.bytesRemaining() == 0); in readHeader()
53 assert(Reader.bytesRemaining() == 0); in readStrings()
80 assert(Reader.bytesRemaining() == 0); in readEpilogue()
105 assert(Reader.bytesRemaining() == 0); in reload()
DPDBStringTableBuilder.cpp161 assert(Writer.bytesRemaining() == 0); in writeHeader()
169 assert(Writer.bytesRemaining() == 0); in writeStrings()
197 assert(Writer.bytesRemaining() == 0); in writeHashTable()
204 assert(Writer.bytesRemaining() == 0); in writeEpilogue()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DPublicsStream.cpp62 if (Reader.bytesRemaining() < in reload()
90 if (Reader.bytesRemaining() > 0) { in reload()
97 if (Reader.bytesRemaining() > 0) in reload()
DPDBStringTable.cpp38 assert(Reader.bytesRemaining() == 0); in readHeader()
53 assert(Reader.bytesRemaining() == 0); in readStrings()
80 assert(Reader.bytesRemaining() == 0); in readEpilogue()
105 assert(Reader.bytesRemaining() == 0); in reload()
DPDBStringTableBuilder.cpp161 assert(Writer.bytesRemaining() == 0); in writeHeader()
169 assert(Writer.bytesRemaining() == 0); in writeStrings()
197 assert(Writer.bytesRemaining() == 0); in writeHashTable()
204 assert(Writer.bytesRemaining() == 0); in writeEpilogue()
/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-10.0/llvm/lib/ObjectYAML/
DCodeViewYAMLTypeHashing.cpp58 while (Reader.bytesRemaining() != 0) { in fromDebugH()
63 assert(Reader.bytesRemaining() == 0); in fromDebugH()
85 assert(Writer.bytesRemaining() == 0); in toDebugH()

12345