pub fn parse_memory(s: &str) -> AppResult<i64>Expand description
Parse a human-readable memory string into bytes.
Supported suffixes (case-insensitive): k/ki (KiB), m/mi (MiB), g/gi (GiB),
t/ti (TiB), p/pi (PiB). A bare number is treated as bytes.
All units are binary (1024-based).
ยงErrors
Returns rskit_errors::ErrorCode::InvalidFormat when the string is empty, not a valid quantity,
negative, or larger than i64::MAX bytes.