open static fun fromHexString(str: CharSequence!): Bytes32!
(source)
Parse a hexadecimal string into a Bytes32
.
This method is strict in that str
must of an even length.
str
- CharSequence!: The hexadecimal string to parse, which may or may not start with "0x". That representation may contain less than 32 bytes, in which case the result is left padded with zeros (see #fromHexStringStrict
if this is not what you want).
IllegalArgumentException
- if str
does not correspond to a valid hexadecimal representation, is of an odd length, or contains more than 32 bytes.
Return
Bytes32!: The value corresponding to str
.