Builder

Provides an API for building a BytesHexFormat.

This class is a builder for BytesHexFormat, and serves as the type of the bytes property when creating a new format using the HexFormat { } builder function. Each option in this class corresponds to an option in BytesHexFormat and defines it in the resulting format. For example, use val format = HexFormat { bytes.byteSeparator = true } to set BytesHexFormat.byteSeparator. Refer to BytesHexFormat for details about how the configured format options affect formatting and parsing results.

Since Kotlin

1.9

Properties

Link copied to clipboard

Defines BytesHexFormat.bytePrefix of the format being built, empty string by default.

Since Kotlin 1.9
Link copied to clipboard

Defines BytesHexFormat.byteSeparator of the format being built, empty string by default.

Since Kotlin 1.9
Link copied to clipboard

Defines BytesHexFormat.bytesPerGroup of the format being built, Int.MAX_VALUE by default.

Since Kotlin 1.9
Link copied to clipboard

Defines BytesHexFormat.bytesPerLine of the format being built, Int.MAX_VALUE by default.

Since Kotlin 1.9
Link copied to clipboard

Defines BytesHexFormat.byteSuffix of the format being built, empty string by default.

Since Kotlin 1.9
Link copied to clipboard

Defines BytesHexFormat.groupSeparator of the format being built, two space characters (" ") by default.

Since Kotlin 1.9