---
title: "MemorySource"
sidebar_label: "MemorySource"
description: "Kotlin binding reference: MemorySource."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[MemorySource](index.md)

# MemorySource

[common]\
enum [MemorySource](index.md) : [Enum](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html)&lt;[MemorySource](index.md)&gt; 

How the physical figures of a [MemoryStats](../MemoryStats/index.md) were obtained: read from the driver or the OS ([MEASURED](MEASURED/index.md)), derived from a declared budget or a clamped read ([HEURISTIC](HEURISTIC/index.md)), or not available ([UNKNOWN](UNKNOWN/index.md)).

## Entries

| | |
|---|---|
| [UNKNOWN](UNKNOWN/index.md) | [common]<br>[UNKNOWN](UNKNOWN/index.md) |
| [HEURISTIC](HEURISTIC/index.md) | [common]<br>[HEURISTIC](HEURISTIC/index.md) |
| [MEASURED](MEASURED/index.md) | [common]<br>[MEASURED](MEASURED/index.md) |

## Types

| Name | Summary |
|---|---|
| [Companion](Companion/index.md) | [common]<br>object [Companion](Companion/index.md) |

## Properties

| Name | Summary |
|---|---|
| [code](code.md) | [common]<br>val [code](code.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |
| [name](../PaddingSide/LEFT/index.md) | [common]<br>val [name](../PaddingSide/LEFT/index.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) |
| [ordinal](../PaddingSide/LEFT/index.md) | [common]<br>val [ordinal](../PaddingSide/LEFT/index.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |

## Functions

| Name | Summary |
|---|---|
| [valueOf](valueOf.md) | [common]<br>fun [valueOf](valueOf.md)(value: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [MemorySource](index.md)<br>Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
| [values](values.md) | [common]<br>fun [values](values.md)(): [Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)&lt;[MemorySource](index.md)&gt;<br>Returns an array containing the constants of this enum type, in the order they're declared. |