hex_decode
Mojo function 🡭
hex_decode
fn def hex_decode(s: String) -> List[UInt8]Hex-decode s into a newly allocated, dynamically-sized list.
Args:
- s (
String)
Returns:
List[UInt8]
Raises:
fn def hex_decode[SIZE: Int](s: String) -> Array[UInt8, SIZE]Hex-decode s into a newly allocated, fixed-size array.
Parameters:
- SIZE (
Int)
Args:
- s (
String)
Returns:
Array[UInt8, SIZE]
Raises:
fn def hex_decode[o: MutOrigin](s: String, result: Span[UInt8, o])Hex-decode s into result, which must be exactly len(s) // 2 bytes.
Parameters:
- o (
MutOrigin)
Args:
- s (
String) - result (
Span[UInt8, o])
Raises: