Companion

Functions

Link copied to clipboard

Create a new pointer which is not initialized yet and can be initialized later

Link copied to clipboard

Create a new mutable pointer which is not initialized yet and can be initialized later

Link copied to clipboard
fun <T> mutableOf(value: T): MutablePointer<T>

Create a new mutable pointer pointing to the given value

Link copied to clipboard
fun <T> of(value: T): Pointer<T>

Create a new pointer pointing to the given value

Link copied to clipboard
fun <T> task(task: () -> T): Pointer<T>

Create a new pointer which performs the given task on access and returns the result of the task