Skip to main content

parse_size_bytes

Function parse_size_bytes 

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

Parse a Docker-style size string into bytes. Bare digits are rejected here (in real Docker syntax they mean bytes, a guaranteed footgun for VM sizing); the typed wrappers below give them safe meanings.