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

Method streamToBytes

api/src/main/java/io/grpc/Metadata.java:1044–1050  ·  view source on GitHub ↗
(InputStream stream)

Source from the content-addressed store, hash-verified

1042 }
1043
1044 private static byte[] streamToBytes(InputStream stream) {
1045 try {
1046 return ByteStreams.toByteArray(stream);
1047 } catch (IOException ioe) {
1048 throw new RuntimeException("failure reading serialized stream", ioe);
1049 }
1050 }
1051}

Callers 2

toBytesMethod · 0.80
toBytesMethod · 0.80

Calls 1

toByteArrayMethod · 0.45

Tested by

no test coverage detected