Class: BytesConverter

montage/core/converter/bytes-converter~ BytesConverter

Converts a numeric value to byte format (for example, 2048 is converted to 2MB).

Constructor

new BytesConverter()

Source:

Extends

Members

allowPartialConversion :boolean

Specifies whether the converter allows partial conversion.
Type:
  • boolean
Inherited From:
Default Value:
  • true
Source:

Methods

convert()

Converts values from the input domain into the output range.
Inherited From:
Default Value:
  • null
Source:

revert()

Optionally, reverts values from the output range, back into the input range. This may not be possible with high fidelity depending on the relationship between these domains.
Inherited From:
Default Value:
  • null
Source: