MCPcopy Create free account
hub / github.com/grpc/grpc-java / drainTo

Method drainTo

api/src/main/java/io/grpc/Drainable.java:39–39  ·  view source on GitHub ↗

Transfers the entire contents of this stream to the specified target. @param target to write to. @return number of bytes written.

(OutputStream target)

Source from the content-addressed store, hash-verified

37 * @return number of bytes written.
38 */
39 int drainTo(OutputStream target) throws IOException;
40}

Callers 6

testDrainTo_allMethod · 0.95
testDrainTo_partialMethod · 0.95
testDrainTo_noneMethod · 0.95
awaitOnReadyAndDrainMethod · 0.65
awaitOnReadyAndDrainMethod · 0.65
writeToOutputStreamMethod · 0.65

Implementers 3

ProtoInputStreamprotobuf-lite/src/main/java/io/grpc/pr
BlockInputStreambinder/src/main/java/io/grpc/binder/in
ByteBufInputStreambenchmarks/src/main/java/io/grpc/bench

Calls

no outgoing calls

Tested by 5

testDrainTo_allMethod · 0.76
testDrainTo_partialMethod · 0.76
testDrainTo_noneMethod · 0.76
awaitOnReadyAndDrainMethod · 0.52
awaitOnReadyAndDrainMethod · 0.52