Function nbdkit::parse_size

source ·
pub fn parse_size(s: &str) -> Result<i64>
Expand description

Parse a string as a size using nbdkit_parse_size.

This parses size strings like 1M, 7E, etc in the same way as other (non Rust) nbdkit plugins, so you can use this function for consistency with other plugins.