Hex

@Serializable
class Hex

This class is used to represent a hex string.

It is used for working with hex strings. Hex strings, when represented as a string, generally look like these examples:

  • 0x1

  • 0xaa86fe99004361f747f91342ca13c426ca0cccb0c1217677180c9493bad6ef0c

Constructors

Link copied to clipboard
constructor(data: ByteArray)

This constructor is used to create a new Hex from a byte array.

constructor()

Creates a hex string from a string.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard