Package com.google.protobuf
Class ByteStringAccess
java.lang.Object
com.google.protobuf.ByteStringAccess
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.protobuf.ByteString
wrap
(byte[] bytes) Wraps the given bytes into aByteString
.static com.google.protobuf.ByteString
wrap
(byte[] bytes, int offset, int length) Wraps the given bytes into aByteString
.static com.google.protobuf.ByteString
wrap
(ByteBuffer buffer) Wraps the given bytes into aByteString
.
-
Constructor Details
-
ByteStringAccess
public ByteStringAccess()
-
-
Method Details
-
wrap
Wraps the given bytes into aByteString
. -
wrap
public static com.google.protobuf.ByteString wrap(byte[] bytes) Wraps the given bytes into aByteString
. -
wrap
public static com.google.protobuf.ByteString wrap(byte[] bytes, int offset, int length) Wraps the given bytes into aByteString
.
-