A quantity of data, stored canonically in bytes. Build with bytes/1 or the
binary-prefix constructors (kib/1, mib/1, gib/1, tib/1); read back with
the matching as_* accessor. Arithmetic (+, -) and comparison
(<, >, <=, >=) come from Unit.Operators.
Summary
Functions
The quantity in whole 512-byte sectors.
Parse a string like "4GiB" into an Information. Suffixes: B/KiB/MiB/GiB/TiB.
Like parse/1 but raises ArgumentError on bad input.
v 512-byte disk sectors — the kernel's universal block-device unit.
The zero quantity (additive identity).
Types
Functions
The quantity in whole 512-byte sectors.
Parse a string like "4GiB" into an Information. Suffixes: B/KiB/MiB/GiB/TiB.
Like parse/1 but raises ArgumentError on bad input.
v 512-byte disk sectors — the kernel's universal block-device unit.
@spec zero() :: t()
The zero quantity (additive identity).