hexToULong

inline fun String.hexToULong(format: HexFormat = HexFormat.Default): ULong(source)

Parses an ULong value from this string using the specified format.

Note that only HexFormat.NumberHexFormat affects parsing, and parsing is performed in case-insensitive manner.

Since Kotlin

1.9

Parameters

format

the HexFormat to use for parsing, HexFormat.Default by default.

Throws

if this string does not comply with the specified format.