NOTE: This site is deprecated. The site will be turned down after January 31, 2023, and traffic will redirect to the new site at https://protobuf.dev. In the meantime, updates will be made only to protobuf.dev.

toByteString

Stay organized with collections Save and categorize content based on your preferences.

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

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

Returns a copy of this ByteArray as an immutable ByteString.

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

Copies the remaining bytes from this ByteBuffer to a ByteString.