File Size v3.0.0 FileSize.Convertible protocol View Source
A protocol that defines functions to convert file sizes to other units.
Link to this section Summary
Functions
Converts the given file size to a given unit.
Gets the normalized value from the given file size struct.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: term()
t() :: term()
Link to this section Functions
Link to this function
convert(size, unit_info)
View Source
convert(size, unit_info)
View Source
convert(t(), FileSize.Units.Info.t()) :: FileSize.t()
convert(t(), FileSize.Units.Info.t()) :: FileSize.t()
Converts the given file size to a given unit.
Link to this function
normalized_value(size) View Source
Gets the normalized value from the given file size struct.