Macro alloy_primitives::b64
source · macro_rules! b64 { () => { ... }; ($($t:tt)+) => { ... }; }
Expand description
Converts a sequence of string literals containing hex-encoded data
into a new B64
at compile time.
If the input is empty, a zero-initialized array is returned.
See hex!
for more information.
§Examples
use alloy_primitives::{b64, B64};
const ZERO: B64 = b64!();
assert_eq!(ZERO, B64::ZERO);
let byte_array: B64 = b64!("0x0123abcd…");