RecordRef

class RecordRef<TYPE : Record>(nativePtr: <Error class: unknown class>, record: TYPE)

A reference to a heap allocated Record (C struct).

Do not forget to call free on the RecordRef once you are done using it.

Constructors

Link copied to clipboard
constructor(nativePtr: <Error class: unknown class>, record: TYPE)

Functions

Link copied to clipboard
fun free()

Free the memory.

Link copied to clipboard
fun get(): TYPE

Get the underlying record

Link copied to clipboard
fun use(func: (TYPE) -> Unit)

Use the value of this record.