Skip to main content

cherenkov/
units.rs

1//! Byte units used by memory limits, storage sizes and progress reporting.
2
3pub(crate) const BYTES_PER_KIB: usize = 1024;
4pub(crate) const BYTES_PER_MIB: usize = 1024 * BYTES_PER_KIB;
5
6// User-facing GB limits and transfer rates use decimal units.
7pub(crate) const BYTES_PER_GB: usize = 1_000_000_000;