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.9Properties
Defines BytesHexFormat.bytePrefix of the format being built, empty string by default.
Defines BytesHexFormat.byteSeparator of the format being built, empty string by default.
Defines BytesHexFormat.bytesPerGroup of the format being built, Int.MAX_VALUE by default.
Defines BytesHexFormat.bytesPerLine of the format being built, Int.MAX_VALUE by default.
Defines BytesHexFormat.byteSuffix of the format being built, empty string by default.
Defines BytesHexFormat.groupSeparator of the format being built, two space characters (" "
) by default.