Companion

object Companion

Properties

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).