Companion

object Companion

Properties

Link copied to clipboard

A Memory equal to this Int number of bytes.

A Memory equal to this Long number of bytes.

Link copied to clipboard

A Memory equal to this Double number of gibibytes.

A Memory equal to this Int number of gibibytes.

A Memory equal to this Long number of gibibytes.

Link copied to clipboard

A Memory equal to this Double number of kibibytes.

A Memory equal to this Int number of kibibytes.

A Memory equal to this Long number of kibibytes.

Link copied to clipboard

A Memory equal to this Double number of mebibytes.

A Memory equal to this Int number of mebibytes.

A Memory equal to this Long number of mebibytes.

Link copied to clipboard

The Memory of 0.

Functions

Link copied to clipboard
fun bytes(value: Int): Memory
fun bytes(value: Long): Memory

Creates a Memory instance from the given value in bytes.

Link copied to clipboard
fun gibibytes(value: Double): Memory
fun gibibytes(value: Int): Memory
fun gibibytes(value: Long): Memory

Creates a Memory instance from the given value in gibibytes (1GiB = 1024MiB).

Link copied to clipboard
fun kibibytes(value: Double): Memory
fun kibibytes(value: Int): Memory
fun kibibytes(value: Long): Memory

Creates a Memory instance from the given value in kibibytes (1KiB = 1024B).

Link copied to clipboard
fun mebibytes(value: Double): Memory
fun mebibytes(value: Int): Memory
fun mebibytes(value: Long): Memory

Creates a Memory instance from the given value in mebibytes (1MiB = 1024KiB).