Home
last modified time | relevance | path

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

/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/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/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()
DDbiStream.cpp71 if (Reader.bytesRemaining() % sizeof(ContribType) != 0) in loadSectionContribs()
76 uint32_t Count = Reader.bytesRemaining() / sizeof(ContribType); in loadSectionContribs()
181 if (Reader.bytesRemaining() > 0) in reload()
DNameHashTable.cpp58 if (Stream.bytesRemaining() < sizeof(support::ulittle32_t)) in load()
DNameMap.cpp31 if (Stream.bytesRemaining() < NumberOfBytes) in load()
DTpiStream.cpp158 if (Reader.bytesRemaining() < sizeof(HeaderInfo)) in reload()
DPDBFile.cpp167 assert(Reader.bytesRemaining() == 0); in parseStreamData()
/external/llvm/lib/DebugInfo/CodeView/
DStreamReader.cpp84 return readStreamRef(Ref, bytesRemaining()); in readStreamRef()
88 if (bytesRemaining() < Length) in readStreamRef()
DModuleSubstreamVisitor.cpp70 if (auto EC = Reader.readArray(LineInfos, Reader.bytesRemaining())) in visitModuleSubstream()
79 if (auto EC = Reader.readArray(Checksums, Reader.bytesRemaining())) in visitModuleSubstream()
DStreamWriter.cpp69 while (SrcReader.bytesRemaining() > 0) { in writeStreamRef()
/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/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/include/llvm/DebugInfo/CodeView/
DStreamWriter.h77 uint32_t bytesRemaining() const { return getLength() - getOffset(); } in bytesRemaining() function
DStreamReader.h102 uint32_t bytesRemaining() const { return getLength() - getOffset(); } in bytesRemaining() function
/external/llvm/tools/llvm-pdbdump/
DLLVMOutputStyle.cpp265 while (R.bytesRemaining() > 0) { in dumpStreamData()
268 R.bytesRemaining(), static_cast<uint32_t>(File.getBlockSize())); in dumpStreamData()
525 if (auto EC = R.readBytes(Data, R.bytesRemaining())) { in dumpDbiStream()