HexFormat

Common
JVM
JS
Native
1.9
@ExperimentalStdlibApi class HexFormat
(source)

Represents hexadecimal format options.

To create a new HexFormat use HexFormat function.

Types

Common
JVM
JS
Native
1.0

Builder

A context for building a HexFormat. Provides API for configuring format options.

class Builder
Common
JVM
JS
Native
1.0

BytesHexFormat

Represents hexadecimal format options for formatting and parsing ByteArray.

class BytesHexFormat
Common
JVM
JS
Native
1.0

NumberHexFormat

Represents hexadecimal format options for formatting and parsing a numeric value.

class NumberHexFormat

Properties

Common
JVM
JS
Native
1.0

bytes

Specifies hexadecimal format used for formatting and parsing ByteArray.

val bytes: BytesHexFormat
Common
JVM
JS
Native
1.0

number

Specifies hexadecimal format used for formatting and parsing a numeric value.

val number: NumberHexFormat
Common
JVM
JS
Native
1.0

upperCase

Specifies whether upper case hexadecimal digits 0-9, A-F should be used for formatting. If false, lower case hexadecimal digits 0-9, a-f will be used.

val upperCase: Boolean

Functions

Common
JVM
JS
Native
1.0

toString

Returns a string representation of the object.

fun toString(): String

Companion Object Properties

Common
JVM
JS
Native
1.0

Default

The default hexadecimal format options.

val Default: HexFormat
Common
JVM
JS
Native
1.0

UpperCase

Uses upper case hexadecimal digits 0-9, A-F when formatting both ByteArray and numeric values. That is upperCase is true.

val UpperCase: HexFormat