Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RuntimeContext

internal

Manages extra runtime context for the runtime.

Hierarchy

  • RuntimeContext

Implements

Index

Constructors

constructor

Properties

arrayGetItem

arrayGetItem: PackedFunc

arrayGetSize

arrayGetSize: PackedFunc

arrayMake

arrayMake: PackedFunc

getSysLib

getSysLib: PackedFunc

Methods

attachToCurrentScope

  • attachToCurrentScope<T>(obj: T): T
  • Track object for dispose in current scope.

    note

    This function only needs to be called for raw system C API values. The return value of PackedFunc will be automatically tracked.

    Type parameters

    Parameters

    • obj: T

      The object to be tracked.

    Returns T

    the same object.

beginScope

  • beginScope(): void

detachFromCurrentScope

  • detachFromCurrentScope<T>(obj: T): T

dispose

  • dispose(): void

endScope

  • endScope(): void

moveToParentScope

  • moveToParentScope<T>(obj: T): T

Generated using TypeDoc