oku_fs::fs::utilFunction parse_array_hex_or_base32
Source pub fn parse_array_hex_or_base32<const LEN: usize>(
input: &str,
) -> Result<[u8; LEN]>
Expand description
Parse a string either as a hex-encoded or base32-encoded byte array of length LEN
.
§Arguments
input
- The string to parse.
§Returns
An array of bytes of length LEN
.