bytes

Specifies the hexadecimal format used for formatting and parsing byte arrays.

This property defines how byte arrays are formatted into hexadecimal strings and parsed back from strings into byte arrays. It is utilized by ByteArray.toHexString for formatting and String.hexToByteArray for parsing. These functions are available for UByteArray as well.

Refer to BytesHexFormat for details about the available format options, their impact on formatting and parsing results, and their default settings.

Since Kotlin

1.9