File Size v3.0.1 FileSize.Byte View Source

A struct that represents a file size in bytes as lowest possible value, which is a chunk of 8 bits each.

Link to this section Summary

Types

A type defining the available IEC units.

A type defining the available SI units.

t()

The byte type.

A union type combining the available IEC and SI units.

Link to this section Types

Link to this type

iec_unit() View Source
iec_unit() :: :b | :kib | :mib | :gib | :tib | :pib | :eib | :zib | :yib

A type defining the available IEC units.

Link to this type

si_unit() View Source
si_unit() :: :b | :kb | :mb | :gb | :tb | :pb | :eb | :zb | :yb

A type defining the available SI units.

Link to this type

t() View Source
t() :: %FileSize.Byte{bytes: number(), unit: unit(), value: number()}

The byte type.

A union type combining the available IEC and SI units.