Macro byte_unit::n_tb_bytes[][src]

macro_rules! n_tb_bytes {
    () => { ... };
    ( $x:expr ) => { ... };
    ( $x:expr, $t:ty ) => { ... };
}

Convert n TB to bytes.

Examples

#[macro_use] extern crate byte_unit;

let result = n_tb_bytes!(4);

assert_eq!(result, 4000000000000u128);