Companion

object Companion

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

Properties

Link copied to clipboard

The Memory of 0.