public static class Utf8StringEncoder.Result
extends java.lang.Object
Utf8StringEncoder.encode(String)
operation.Constructor and Description |
---|
Result(int encodedLength,
byte[] buffer) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer()
Returns a byte array containing the encoded UTF-8 bytes starting at index 0.
|
int |
getEncodedLength() |
public byte[] getBuffer()
getEncodedLength()
to determine the number of bytes that should be read from the byte array.public int getEncodedLength()
getBuffer()
.