[][src]Crate convert_byte_size_string

Enums

ConversionError

Represents possible errors the library can return.

Functions

convert_to_bytes

Convert the provided string to a u128 value containing the number of bytes represented by the string. Implies the base to use based on the string, e.g. "KiB" uses base 2 and "KB" uses base 10.

convert_to_bytes_base_2

Like convert_to_bytes but forces the units to be treated as base 2 units (multiples of 1024).

convert_to_bytes_base_10

Like convert_to_bytes but forces the units to be treated as base 10 units (multiples of 1000).