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