← Docs
kotlin-stdlib / kotlinx.cinterop / useContents

useContents

Native
1.3
inline fun < reified T : CStructVar , R > CValue < T > . useContents (
block : T . ( ) -> R
) : R

(source)

Calls the block with temporary copy of this value as receiver.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .