SIMD-accelerated hex encoding and decoding.
Examples
use AsciiCase;
let bytes = b"Hello world!";
let encoded = encode_to_boxed_str;
assert_eq!;
let decoded = decode_to_boxed_bytes.unwrap;
assert_eq!;
SIMD-accelerated hex encoding and decoding.
use hex_simd::AsciiCase;
let bytes = b"Hello world!";
let encoded = hex_simd::encode_to_boxed_str(bytes, AsciiCase::Lower);
assert_eq!(&*encoded, "48656c6c6f20776f726c6421");
let decoded = hex_simd::decode_to_boxed_bytes(encoded.as_bytes()).unwrap();
assert_eq!(&*decoded, bytes);