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

Convert n KiB to bytes.

Examples

let result = byte_unit::n_kib_bytes!(4);

assert_eq!(4096, result);
let result = byte_unit::n_kib_bytes!(2.5, f64);

assert_eq!(2560, result);