//protobuf-kotlin/com.google.protobuf.kotlin/toByteString

toByteString

[JVM]
Content
fun ByteArray.toByteString(): ByteString

Returns a copy of this ByteArray as an immutable ByteString.

[JVM]
Content
fun ByteBuffer.toByteString(): ByteString

Copies the remaining bytes from this ByteBuffer to a ByteString.