Macro byte_unit::n_gib_bytes [−][src]
macro_rules! n_gib_bytes { () => { ... }; ( $x:expr ) => { ... }; ( $x:expr, $t:ty ) => { ... }; }
Convert n GiB to bytes.
Examples
#[macro_use] extern crate byte_unit; let result = n_gib_bytes!(4); assert_eq!(result, 4294967296u128);