Skip to main contentModule bytes
Source - deserialize_bytesize_u64
- Accepts an integer byte count or a string with SI/IEC suffix (e.g. “32 MiB”)
and returns a
u64. - deserialize_bytesize_usize
- Accepts an integer byte count or a string with SI/IEC suffix (e.g. “24 MiB”)
and returns a
usize. - from_str
- Parse a human-writable size string w/ si-unit suffix into integer
- increment
- pretty
- Output a human-readable size string w/ iec-unit suffix
- u64_from_bytes
- Parses the big-endian bytes into an u64.
- u64_from_u8
- Parses 8 big-endian bytes into an u64; panic on invalid argument