Encode the String to its Buf representation per the charset
Encode the String to its Buf representation per the charset
Some(String representation of the Buf)
This extractor does *not* return None to indicate a failed or impossible decoding. Malformed or unmappable bytes will instead be silently replaced by the replacement character ("�") in the returned String. This behavior may change in the future.
Create and deconstruct buffers encoded by the 16-bit UTF charset with big-endian byte order.
See
,com.twitter.io.Bufs.UTF_16BE
for a Java-friendly API.Malformed and unmappable input is silently replaced see java.nio.charset.CodingErrorAction.REPLACE