struct MemoryConversion::Bytes
- MemoryConversion::Bytes
- Struct
- Value
- Object
Defined in:
Constructors
Instance Method Summary
-
#to_b_s
Produce a string representing this byte value like
"##B"
. -
#to_bits : BigFloat
Convert this number of bytes to the equivalent number of bits
-
#to_byte_s
Produce a string representing this byte value like
"## bytes"
. -
#to_bytes : BigFloat
Convert this number of bytes to the equivalent number of bytes
-
#to_eb_s
Produce a string representing this byte value like
"##EB"
. -
#to_exabits : BigFloat
Convert this number of bytes to the equivalent number of Exabits
-
#to_exabyte_s
Produce a string representing this byte value like
"## Exabytes"
. -
#to_exabytes : BigFloat
Convert this number of bytes to the equivalent number of Exabytes
-
#to_gb_s
Produce a string representing this byte value like
"##GB"
. -
#to_gigabits : BigFloat
Convert this number of bytes to the equivalent number of Gigabits
-
#to_gigabyte_s
Produce a string representing this byte value like
"## Gigabytes"
. -
#to_gigabytes : BigFloat
Convert this number of bytes to the equivalent number of Gigabytes
-
#to_kb_s
Produce a string representing this byte value like
"##kB"
. -
#to_kilobits : BigFloat
Convert this number of bytes to the equivalent number of kilobits
-
#to_kilobyte_s
Produce a string representing this byte value like
"## kilobytes"
. -
#to_kilobytes : BigFloat
Convert this number of bytes to the equivalent number of kilobytes
-
#to_mb_s
Produce a string representing this byte value like
"##MB"
. -
#to_megabits : BigFloat
Convert this number of bytes to the equivalent number of Megabits
-
#to_megabyte_s
Produce a string representing this byte value like
"## Megabytes"
. -
#to_megabytes : BigFloat
Convert this number of bytes to the equivalent number of Megabytes
-
#to_pb_s
Produce a string representing this byte value like
"##PB"
. -
#to_petabits : BigFloat
Convert this number of bytes to the equivalent number of Petabits
-
#to_petabyte_s
Produce a string representing this byte value like
"## Petabytes"
. -
#to_petabytes : BigFloat
Convert this number of bytes to the equivalent number of Petabytes
-
#to_s(scale : Symbol? = nil)
Returns a string representation of this object.
-
#to_storage_bits : BigFloat
Convert to storage bytes and then multiply by 8.
-
#to_storage_bytes : BigFloat
Convert this number of bytes to the equivalent number of bytes.
-
#to_storage_exabits : BigFloat
Convert to storage bytes and then multiply by 8.
-
#to_storage_exabytes : BigFloat
Convert this number of bytes to the equivalent number of Exabytes.
-
#to_storage_gigabits : BigFloat
Convert to storage bytes and then multiply by 8.
-
#to_storage_gigabytes : BigFloat
Convert this number of bytes to the equivalent number of Gigabytes.
-
#to_storage_kilobits : BigFloat
Convert to storage bytes and then multiply by 8.
-
#to_storage_kilobytes : BigFloat
Convert this number of bytes to the equivalent number of kilobytes.
-
#to_storage_megabits : BigFloat
Convert to storage bytes and then multiply by 8.
-
#to_storage_megabytes : BigFloat
Convert this number of bytes to the equivalent number of Megabytes.
-
#to_storage_petabits : BigFloat
Convert to storage bytes and then multiply by 8.
-
#to_storage_petabytes : BigFloat
Convert this number of bytes to the equivalent number of Petabytes.
-
#to_storage_terabits : BigFloat
Convert to storage bytes and then multiply by 8.
-
#to_storage_terabytes : BigFloat
Convert this number of bytes to the equivalent number of Terabytes.
-
#to_storage_yottabits : BigFloat
Convert to storage bytes and then multiply by 8.
-
#to_storage_yottabytes : BigFloat
Convert this number of bytes to the equivalent number of Yottabytes.
-
#to_storage_zettabits : BigFloat
Convert to storage bytes and then multiply by 8.
-
#to_storage_zettabytes : BigFloat
Convert this number of bytes to the equivalent number of Zettabytes.
-
#to_tb_s
Produce a string representing this byte value like
"##TB"
. -
#to_terabits : BigFloat
Convert this number of bytes to the equivalent number of Terabits
-
#to_terabyte_s
Produce a string representing this byte value like
"## Terabytes"
. -
#to_terabytes : BigFloat
Convert this number of bytes to the equivalent number of Terabytes
-
#to_yb_s
Produce a string representing this byte value like
"##YB"
. -
#to_yottabits : BigFloat
Convert this number of bytes to the equivalent number of Yottabits
-
#to_yottabyte_s
Produce a string representing this byte value like
"## Yottabytes"
. -
#to_yottabytes : BigFloat
Convert this number of bytes to the equivalent number of Yottabytes
-
#to_zb_s
Produce a string representing this byte value like
"##ZB"
. -
#to_zettabits : BigFloat
Convert this number of bytes to the equivalent number of Zettabits
-
#to_zettabyte_s
Produce a string representing this byte value like
"## Zettabytes"
. -
#to_zettabytes : BigFloat
Convert this number of bytes to the equivalent number of Zettabytes
Macro Summary
Constructor Detail
Instance Method Detail
Returns a string representation of this object.
Descendants must usually not override this method. Instead,
they must override #to_s(io)
, which must append to the given
IO object.
Convert this number of bytes to the equivalent number of bytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Exabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Gigabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of kilobytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Megabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Petabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Terabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Yottabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Zettabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.