tuweni / org.apache.tuweni.bytes / Bytes48 / fromHexString


open static fun fromHexString(str: CharSequence!): Bytes48! (source)

Parse a hexadecimal string into a Bytes48.

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 48 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 48 bytes.

Bytes48!: The value corresponding to str.