releaseElements
fun JBooleanArray.releaseElements(elems: CArrayPointer<UByteVar>, mode: ApplyChangesMode)(source)
fun JByteArray.releaseElements(elems: CArrayPointer<ByteVar>, mode: ApplyChangesMode)(source)
fun JIntArray.releaseElements(elems: CPointer<IntVar>, mode: ApplyChangesMode)(source)
fun JLongArray.releaseElements(elems: CPointer<LongVar>, mode: ApplyChangesMode)(source)
fun JFloatArray.releaseElements(elems: CPointer<FloatVar>, mode: ApplyChangesMode)(source)
fun JDoubleArray.releaseElements(elems: CPointer<DoubleVar>, mode: ApplyChangesMode)(source)
Informs the VM that the native code no longer needs access to elems. The elems argument is a pointer derived from the receiver using the getElements function. If necessary, this function copies back all changes made to elems to the original array.
The mode argument provides information on how the array buffer should be released. mode has no effect if elems is not a copy of the elements in the receiver. Otherwise, mode has the following impact:
ApplyChangesMode.FinalCommit -> copy back the content and free the elems buffer.
ApplyChangesMode.Commit -> copy back the content but do not free the elems buffer.
ApplyChangesMode.Abort -> free the buffer without copying back the possible changes.
fun JCharArray.releaseElements(elems: CArrayPointer<UShortVar>, mode: ApplyChangesMode)(source)
fun JShortArray.releaseElements(elems: CArrayPointer<ShortVar>, mode: ApplyChangesMode)(source)
Informs the VM that the native code no longer needs access to elems. The elems argument is a pointer derived from the receiver using the getElements function. If necessary, this function copies back all changes made to elems to the original array.
The mode argument provides information on how the array buffer should be released. mode has no effect if elems is not a copy of the elements in the receiver Otherwise, mode has the following impact:
ApplyChangesMode.FinalCommit -> copy back the content and free the elems buffer.
ApplyChangesMode.Commit -> copy back the content but do not free the elems buffer.
ApplyChangesMode.Abort -> free the buffer without copying back the possible changes.