Converts a quantity of mebibytes to bytes.
(size: V)
| 118 | |
| 119 | /// Converts a quantity of mebibytes to bytes. |
| 120 | pub fn mib<V: Into<u64>>(size: V) -> u64 { |
| 121 | size.into() * MIB |
| 122 | } |
| 123 | |
| 124 | /// Converts a quantity of gigabytes to bytes. |
| 125 | pub fn gb<V: Into<u64>>(size: V) -> u64 { |
no outgoing calls