public class ByteStringer extends Object
ZeroCopyByteStringUtil
for cases where it's not available.Modifier and Type | Method and Description |
---|---|
static byte[] |
extract(com.google.protobuf.ByteString buf) |
static com.google.protobuf.ByteString |
wrap(byte[] array)
Wraps a byte array in a
ByteString without copying it. |
static com.google.protobuf.ByteString |
wrap(byte[] array,
int offset,
int length)
Wraps a byte array in a
ByteString without copying it. |
public static com.google.protobuf.ByteString wrap(byte[] array)
ByteString
without copying it.public static com.google.protobuf.ByteString wrap(byte[] array, int offset, int length)
ByteString
without copying it.public static byte[] extract(com.google.protobuf.ByteString buf)