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

Method toBytes

api/src/main/java/io/grpc/Metadata.java:980–985  ·  view source on GitHub ↗
(T value)

Source from the content-addressed store, hash-verified

978 }
979
980 @Override
981 byte[] toBytes(T value) {
982 String encoded = Preconditions.checkNotNull(
983 marshaller.toAsciiString(value), "null marshaller.toAsciiString()");
984 return encoded.getBytes(US_ASCII);
985 }
986
987 @Override
988 T parseBytes(byte[] serialized) {

Callers

nothing calls this directly

Calls 3

checkNotNullMethod · 0.80
getBytesMethod · 0.80
toAsciiStringMethod · 0.65

Tested by

no test coverage detected