struct

MemoryConversion::Bits

Inherits Struct < Value < Object

Constructors

new(value)
Source

Instance methods

to_b_s

Produce a string representing this bit value like "##b".

Source
to_bit_s

Produce a string representing this bit value like "## bits".

Source
to_bits

Convert this number of bits to the equivalent number of bits

Source
to_bytes

Convert this number of bits to the equivalent number of bytes

Source
to_eb_s

Produce a string representing this bit value like "##Eb".

Source
to_exabit_s

Produce a string representing this bit value like "## Exabits".

Source
to_exabits

Convert this number of bits to the equivalent number of Exabits

Source
to_exabytes

Convert this number of bits to the equivalent number of Exabytes

Source
to_gb_s

Produce a string representing this bit value like "##Gb".

Source
to_gigabit_s

Produce a string representing this bit value like "## Gigabits".

Source
to_gigabits

Convert this number of bits to the equivalent number of Gigabits

Source
to_gigabytes

Convert this number of bits to the equivalent number of Gigabytes

Source
to_kb_s

Produce a string representing this bit value like "##kb".

Source
to_kilobit_s

Produce a string representing this bit value like "## kilobits".

Source
to_kilobits

Convert this number of bits to the equivalent number of kilobits

Source
to_kilobytes

Convert this number of bits to the equivalent number of kilobytes

Source
to_mb_s

Produce a string representing this bit value like "##Mb".

Source
to_megabit_s

Produce a string representing this bit value like "## Megabits".

Source
to_megabits

Convert this number of bits to the equivalent number of Megabits

Source
to_megabytes

Convert this number of bits to the equivalent number of Megabytes

Source
to_pb_s

Produce a string representing this bit value like "##Pb".

Source
to_petabit_s

Produce a string representing this bit value like "## Petabits".

Source
to_petabits

Convert this number of bits to the equivalent number of Petabits

Source
to_petabytes

Convert this number of bits to the equivalent number of Petabytes

Source
to_s(scale : Symbol)
Source
to_storage_bits

Convert this number of bits to the equivalent number of bits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.

Source
to_storage_bytes

Convert to storage bits and then divide by 8.

Source
to_storage_exabits

Convert this number of bits to the equivalent number of Exabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.

Source
to_storage_exabytes

Convert to storage bits and then divide by 8.

Source
to_storage_gigabits

Convert this number of bits to the equivalent number of Gigabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.

Source
to_storage_gigabytes

Convert to storage bits and then divide by 8.

Source
to_storage_kilobits

Convert this number of bits to the equivalent number of kilobits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.

Source
to_storage_kilobytes

Convert to storage bits and then divide by 8.

Source
to_storage_megabits

Convert this number of bits to the equivalent number of Megabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.

Source
to_storage_megabytes

Convert to storage bits and then divide by 8.

Source
to_storage_petabits

Convert this number of bits to the equivalent number of Petabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.

Source
to_storage_petabytes

Convert to storage bits and then divide by 8.

Source
to_storage_terabits

Convert this number of bits to the equivalent number of Terabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.

Source
to_storage_terabytes

Convert to storage bits and then divide by 8.

Source
to_storage_yottabits

Convert this number of bits to the equivalent number of Yottabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.

Source
to_storage_yottabytes

Convert to storage bits and then divide by 8.

Source
to_storage_zettabits

Convert this number of bits to the equivalent number of Zettabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.

Source
to_storage_zettabytes

Convert to storage bits and then divide by 8.

Source
to_tb_s

Produce a string representing this bit value like "##Tb".

Source
to_terabit_s

Produce a string representing this bit value like "## Terabits".

Source
to_terabits

Convert this number of bits to the equivalent number of Terabits

Source
to_terabytes

Convert this number of bits to the equivalent number of Terabytes

Source
to_yb_s

Produce a string representing this bit value like "##Yb".

Source
to_yottabit_s

Produce a string representing this bit value like "## Yottabits".

Source
to_yottabits

Convert this number of bits to the equivalent number of Yottabits

Source
to_yottabytes

Convert this number of bits to the equivalent number of Yottabytes

Source
to_zb_s

Produce a string representing this bit value like "##Zb".

Source
to_zettabit_s

Produce a string representing this bit value like "## Zettabits".

Source
to_zettabits

Convert this number of bits to the equivalent number of Zettabits

Source
to_zettabytes

Convert this number of bits to the equivalent number of Zettabytes

Source

Macros

method_missing(call)
Source