Platform

Native
1.3
@ExperimentalNativeApi object Platform
(source)

Object describing the current platform program executes upon.

Properties

Native
1.3

canAccessUnaligned

Check if current architecture allows unaligned access to wider than byte locations.

val canAccessUnaligned: Boolean
Native
1.3

cpuArchitecture

Architecture of the CPU program executes upon.

val cpuArchitecture: CpuArchitecture
Native
1.3

isCleanersLeakCheckerActive

var isCleanersLeakCheckerActive: Boolean
Native
1.3

isDebugBinary

If binary was compiled in debug mode.

val isDebugBinary: Boolean
Native
1.3

isFreezingEnabled

If freezing is enabled.

val isFreezingEnabled: Boolean
Native
1.3

isLittleEndian

Check if byte order of the current platform is least significant byte (LSB) first, aka little endian.

val isLittleEndian: Boolean
Native
1.3

isMemoryLeakCheckerActive

If the memory leak checker is activated, by default true in debug mode, false in release. When memory leak checker is activated, and leak is detected during last Kotlin context deinitialization process - error message with leak information is printed and application execution is aborted.

var isMemoryLeakCheckerActive: Boolean
Native
1.3

memoryModel

Memory model binary was compiled with.

val memoryModel: MemoryModel
Native
1.3

osFamily

Operating system family program executes upon.

val osFamily: OsFamily

Functions

Native
1.3

getAvailableProcessors

The number of logical processors available.

fun getAvailableProcessors(): Int