Companion

object Companion

Properties

Link copied to clipboard

The Memory of 0.

Functions

Link copied to clipboard
fun bytes(value: Double): Memory
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 gigabytes(value: Double): Memory
fun gigabytes(value: Int): Memory
fun gigabytes(value: Long): Memory

Creates a Memory instance from the given value in gigabytes (1GB = 1024MB).

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 kilobytes(value: Double): Memory
fun kilobytes(value: Int): Memory
fun kilobytes(value: Long): Memory

Creates a Memory instance from the given value in kilobytes (1KB = 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).

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

Creates a Memory instance from the given value in megabytes (1MB = 1024KB).