@Internal public static interface InternalMetadata.TrustedAsciiMarshaller<T>
Extended here to break the dependency.
| Modifier and Type | Method and Description |
|---|---|
T |
parseAsciiString(byte[] serialized)
Parse a serialized metadata value from an ASCII string.
|
byte[] |
toAsciiString(T value)
Serialize a metadata value to a ASCII string that contains only the characters listed in the
class comment of
Metadata.AsciiMarshaller. |
byte[] toAsciiString(T value)
Metadata.AsciiMarshaller. Otherwise the output may be
considered invalid and discarded by the transport, or the call may fail.value - to serializeT parseAsciiString(byte[] serialized)
serialized - value of metadata to parse