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