Skip to main content

parse_size

Function parse_size 

Source
pub fn parse_size(s: &str) -> Result<u64, String>
Expand description

Parse a numeric argument with optional suffix (K, M, G, etc.) Supports: b(512), kB(1000), K(1024), MB(1e6), M(1048576), GB(1e9), G(1<<30), TB, T, PB, P, EB, E, ZB, Z, YB, Y