Home
last modified time | relevance | path

Searched refs:toWrite (Results 1 – 13 of 13) sorted by relevance

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/
DMemoryDeferredOutputStream.java56 int toWrite = Math.min(remaining, (length - written)); in write() local
57 System.arraycopy(bytes, offset + written, currentBuffer, currentPosition, toWrite); in write()
58 written += toWrite; in write()
59 currentPosition += toWrite; in write()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/
DCharCache.java34 int toWrite = chars.length < available ? chars.length : available; in append()
35 System.arraycopy(chars, 0, cache, pos, toWrite); in append()
36 pos += toWrite; in append()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DFramedStream.java500 long toWrite; in emitDataFrame() local
512 toWrite = Math.min(bytesLeftInWriteWindow, sendBuffer.size()); in emitDataFrame()
513 bytesLeftInWriteWindow -= toWrite; in emitDataFrame()
518 connection.writeData(id, outFinished && toWrite == sendBuffer.size(), sendBuffer, toWrite); in emitDataFrame()
DFramedConnection.java314 int toWrite; in writeData() local
329 toWrite = (int) Math.min(byteCount, bytesLeftInWriteWindow); in writeData()
330 toWrite = Math.min(toWrite, frameWriter.maxDataLength()); in writeData()
331 bytesLeftInWriteWindow -= toWrite; in writeData()
334 byteCount -= toWrite; in writeData()
335 frameWriter.data(outFinished && byteCount == 0, streamId, buffer, toWrite); in writeData()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/
DBitstreamWriter.java57 int toWrite = (curByte[0] << 7) | (curByte[1] << 6) | (curByte[2] << 5) in writeCurByte() local
60 os.write(toWrite); in writeCurByte()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/
DFramedStream.java502 long toWrite; in emitDataFrame() local
514 toWrite = Math.min(bytesLeftInWriteWindow, sendBuffer.size()); in emitDataFrame()
515 bytesLeftInWriteWindow -= toWrite; in emitDataFrame()
520 connection.writeData(id, outFinished && toWrite == sendBuffer.size(), sendBuffer, toWrite); in emitDataFrame()
DFramedConnection.java316 int toWrite; in writeData() local
331 toWrite = (int) Math.min(byteCount, bytesLeftInWriteWindow); in writeData()
332 toWrite = Math.min(toWrite, frameWriter.maxDataLength()); in writeData()
333 bytesLeftInWriteWindow -= toWrite; in writeData()
336 byteCount -= toWrite; in writeData()
337 frameWriter.data(outFinished && byteCount == 0, streamId, buffer, toWrite); in writeData()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DMessageFramer.java287 int toWrite = min(len, buffer.writableBytes()); in writeRaw() local
288 buffer.write(b, off, toWrite); in writeRaw()
289 off += toWrite; in writeRaw()
290 len -= toWrite; in writeRaw()
/external/brotli/java/org/brotli/dec/
DDecode.java684 int toWrite = Math.min(s.outputLength - s.outputUsed, in writeRingBuffer() local
686 if (toWrite != 0) { in writeRingBuffer()
688 s.outputOffset + s.outputUsed, toWrite); in writeRingBuffer()
689 s.outputUsed += toWrite; in writeRingBuffer()
690 s.ringBufferBytesWritten += toWrite; in writeRingBuffer()
/external/brotli/csharp/org/brotli/dec/
DDecode.cs645 …int toWrite = System.Math.Min(state.outputLength - state.outputUsed, state.bytesToWrite - state.by… in WriteRingBuffer()
646 if (toWrite != 0) in WriteRingBuffer()
648 …tate.ringBuffer, state.bytesWritten, state.output, state.outputOffset + state.outputUsed, toWrite); in WriteRingBuffer()
649 state.outputUsed += toWrite; in WriteRingBuffer()
650 state.bytesWritten += toWrite; in WriteRingBuffer()
/external/brotli/js/
Ddecode.js717 …var /** !number */ toWrite = min(s.outputLength - s.outputUsed, s.ringBufferBytesReady - s.ringBuf…
718 if (toWrite != 0) {
719 …ringBuffer.subarray(s.ringBufferBytesWritten, s.ringBufferBytesWritten + toWrite), s.outputOffset …
720 s.outputUsed += toWrite;
721 s.ringBufferBytesWritten += toWrite;
/external/boringssl/src/ssl/test/runner/
Dhandshake_client.go450 toWrite := make([]byte, 0, len(helloBytes)+1)
451 toWrite = append(toWrite, helloBytes...)
452 toWrite = append(toWrite, typeFinished)
453 c.writeRecord(recordTypeHandshake, toWrite)
Dhandshake_server.go817 toWrite := make([]byte, 0, len(helloBytes)+1)
818 toWrite = append(toWrite, helloBytes...)
819 toWrite = append(toWrite, typeEncryptedExtensions)
820 c.writeRecord(recordTypeHandshake, toWrite)