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

Method toBytes

api/src/main/java/io/grpc/Metadata.java:938–947  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

936 }
937
938 byte[] toBytes() {
939 if (serialized == null) {
940 synchronized (this) {
941 if (serialized == null) {
942 serialized = streamToBytes(toStream());
943 }
944 }
945 }
946 return serialized;
947 }
948
949 <T2> T2 toObject(Key<T2> key) {
950 if (key.serializesToStreams()) {

Callers 1

toObjectMethod · 0.95

Calls 2

toStreamMethod · 0.95
streamToBytesMethod · 0.80

Tested by

no test coverage detected