File Size v1.3.0 FileSize.Bit View Source

A struct that represents a file size in bits as lowest possible value.

Link to this section Summary

Types

A type defining the available IEC units.

A type defining the available SI units.

t()

The bit 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() ::
  :bit | :kibit | :mibit | :gibit | :tibit | :pibit | :eibit | :zibit | :yibit

A type defining the available IEC units.

Link to this type

si_unit() View Source
si_unit() ::
  :bit | :kbit | :mbit | :gbit | :tbit | :pbit | :ebit | :zbit | :ybit

A type defining the available SI units.

Link to this type

t() View Source
t() :: %FileSize.Bit{bits: integer(), unit: unit(), value: number()}

The bit type.

A union type combining the available IEC and SI units.