Skip to main content

parse_mem_str

Function parse_mem_str 

Source
pub fn parse_mem_str(mem_str: &str) -> u64
Expand description

Parses memory strings like 2G, 512M, or 1024K into bytes.

The fallback defaults intentionally match the historical CLI behavior rather than failing hard on malformed input.