tuweni / org.apache.tuweni.units.bigints / UInt64 / fromHexString

fromHexString

static fun fromHexString(str: String!): UInt64! (source)

Parse a hexadecimal string into a UInt64.

Parameters

str - String!: The hexadecimal string to parse, which may or may not start with "0x". That representation may contain less than 8 bytes, in which case the result is left padded with zeros.

Exceptions

IllegalArgumentException - if str does not correspond to a valid hexadecimal representation or contains more than 8 bytes.

Return
UInt64!: The value corresponding to str.