System

object System

ported from java.lang.System, only contains things needed for lucenekmp

The {@code System} class contains several useful class fields and methods. It cannot be instantiated.

Among the facilities provided by the {@code System} class are standard input, standard output, and error output streams; access to externally defined properties and environment variables; a means of loading files and libraries; and a utility method for quickly copying a portion of an array.

Since

1.0

Functions

Link copied to clipboard
@JvmName(name = "arraycopyKtNullable")
fun <T> arraycopy(src: Array<T?>, srcPos: Int, dest: Array<T?>, destPos: Int, length: Int)

ported from java.lang.System.arraycopy()

@JvmName(name = "arraycopyKt")
fun <T> arraycopy(src: Array<T>, srcPos: Int, dest: Array<T>, destPos: Int, length: Int)
fun arraycopy(src: Array<IntArray>, srcPos: Int, dest: Array<IntArray>, destPos: Int, length: Int)
fun arraycopy(src: BooleanArray, srcPos: Int, dest: BooleanArray, destPos: Int, length: Int)
fun arraycopy(src: ByteArray, srcPos: Int, dest: ByteArray, destPos: Int, length: Int)
fun arraycopy(src: CharArray, srcPos: Int, dest: CharArray, destPos: Int, length: Int)
fun arraycopy(src: FloatArray, srcPos: Int, dest: FloatArray, destPos: Int, length: Int)
fun arraycopy(src: IntArray, srcPos: Int, dest: IntArray, destPos: Int, length: Int)
fun arraycopy(src: LongArray, srcPos: Int, dest: LongArray, destPos: Int, length: Int)
Link copied to clipboard
Link copied to clipboard
fun getProperty(key: String, def: String? = null): String?

ported from java.lang.System.getProperty() but implementation is EnvVar

Link copied to clipboard

for now target platform only includes JVM (server which means linux server), Android, and iOS all of them use "\n" as the line separator. this implementation will cause problem only on running this program in kotlin/JVM on Windows, or kotlin/Native on Windows.

Link copied to clipboard
fun nanoTime(): Long