macro_rules! bytes {
($n:expr; kB) => { ... };
($n:expr; MB) => { ... };
($n:expr; GB) => { ... };
($n:expr; TB) => { ... };
($n:expr; PB) => { ... };
($n:expr; EB) => { ... };
($n:expr; ZB) => { ... };
($n:expr; YB) => { ... };
($n:expr; KiB) => { ... };
($n:expr; MiB) => { ... };
($n:expr; GiB) => { ... };
($n:expr; TiB) => { ... };
($n:expr; PiB) => { ... };
($n:expr; EiB) => { ... };
($n:expr; ZiB) => { ... };
($n:expr; YiB) => { ... };
}
A conveneince wrapper for the dominant byte suffixes.
Both the JEDEC and ISO/IEC 80000 byte suffixes are supported.
For more details, see si!()
and iec!()
.