Skip to main content
Version: Next

size

This module is responsible for converting size units into bytes

Functions

kiB(size)

Returns the number of bytes in a given number of kibibytes

size::kiB(10)

MiB(size)

Returns the number of bytes in a given number of mebibytes

size::MiB(10)

GiB(size)

Returns the number of bytes in a given number of gibibytes

size::GiB(10)

TiB(size)

Returns the number of bytes in a given number of tebibytes

size::TiB(10)

PiB(size)

Returns the number of bytes in a given number of pebibytes

size::PiB(10)

EiB(size)

Returns the number of bytes in a given number of exbibytes

size::EiB(10)