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.

toByteStringUtf8

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

//protobuf-kotlin/com.google.protobuf.kotlin/toByteStringUtf8

[JVM]
Content
fun String.toByteStringUtf8(): ByteString
More info

Encodes this String into a sequence of UTF-8 bytes and returns the result as a ByteString.