Platform

object Platform

Object describing the current platform program executes upon.

Properties

canAccessUnaligned
Link copied to clipboard
val canAccessUnaligned: Boolean

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

cpuArchitecture
Link copied to clipboard
val cpuArchitecture: CpuArchitecture

Architechture of the CPU program executes upon.

isCleanersLeakCheckerActive
Link copied to clipboard
var isCleanersLeakCheckerActive: Boolean
isDebugBinary
Link copied to clipboard
val isDebugBinary: Boolean

If binary was compiled in debug mode.

isLittleEndian
Link copied to clipboard
val isLittleEndian: Boolean

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

isMemoryLeakCheckerActive
Link copied to clipboard
var isMemoryLeakCheckerActive: Boolean

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.

memoryModel
Link copied to clipboard
val memoryModel: MemoryModel

Memory model binary was compiled with.

osFamily
Link copied to clipboard
val osFamily: OsFamily

Operating system family program executes upon.