← Back to Stormify Documentation

InOut

expect class InOut<T : Any>(type: KClass<T>, input: T) : Sp

INOUT parameter. The input value is sent to the procedure. After the call returns, value holds whatever the procedure left there (which may differ from input).

actual class InOut<T : Any>(val type: KClass<T>, val input: T) : Sp

INOUT parameter. The input value is sent to the procedure. After the call returns, value holds whatever the procedure left there (which may differ from input).

actual class InOut<T : Any>(val type: KClass<T>, val input: T) : Sp

INOUT parameter. The input value is sent to the procedure. After the call returns, value holds whatever the procedure left there (which may differ from input).

Constructors

Link copied to clipboard
expect constructor(type: KClass<T>, input: T)
actual constructor(type: KClass<T>, input: T)
actual constructor(type: KClass<T>, input: T)

Properties

Link copied to clipboard
expect val input: T

The initial value sent to the procedure. Retained for reference after execute.

actual val input: T

The initial value sent to the procedure. Retained for reference after execute.

actual val input: T

The initial value sent to the procedure. Retained for reference after execute.

Link copied to clipboard
expect val required: T

Non-null accessor; throws if the procedure cleared the value to NULL.

actual val required: T

Non-null accessor; throws if the procedure cleared the value to NULL.

actual val required: T

Non-null accessor; throws if the procedure cleared the value to NULL.

Link copied to clipboard
expect val type: KClass<T>

The declared Kotlin type of the parameter.

actual val type: KClass<T>

The declared Kotlin type of the parameter.

actual val type: KClass<T>

The declared Kotlin type of the parameter.

Link copied to clipboard
expect val value: T?

The current value — initially input, updated after execute.

actual val value: T?

The current value — initially input, updated after execute.

actual val value: T?

The current value — initially input, updated after execute.

Functions

toString
Link copied to clipboard
open override fun toString(): String

Debug representation INOUT<Type>:<value>.

open override fun toString(): String

Debug representation INOUT<Type>:<value>.