pub fn parse_byte_size(s: &str) -> Result<i64, Error>
Parses a "<n> <unit>" string (e.g. "1 GB", "512 mb") into a byte count. Accepted units, case insensitive and base 1024: B, KB, MB, GB.
"<n> <unit>"
"1 GB"
"512 mb"
B
KB
MB
GB