← Docs
kotlin-stdlib / kotlinx.cinterop / memScoped

memScoped

Native
1.3
inline fun < R > memScoped ( block : MemScope . ( ) -> R ) : R
(source)

Runs given block providing allocation of memory which will be automatically disposed at the end of this scope.

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 .