fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 176: Hex string to byte array
Idiom # 176: Hex string to byte array
See
programming-idioms.org
:
Code
Code input
# decoding requires uppercase characters a := encodings.base16.decode_str s.upper_case
What are effects?
Runnable Example
Code input
ex176 is s := "46757a696f6e" a := encodings.base16.decode_str s.upper_case say a match a arr array u8 => say (String.from arr) e error => say e
What are effects?
last changed: 2026-02-20
next: NYI: Idiom # 177: Find files with a given list of filename extensions