浏览代码

add notes for class NativeWrapperCPtrDisposable

/zgh-build_scripts
guanghuispark 3 年前
当前提交
099ce203
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9
      com.unity.uiwidgets/Runtime/ui/native_bindings.cs

9
com.unity.uiwidgets/Runtime/ui/native_bindings.cs


}
}
/// <summary>
/// This class is used to release c++ resources in advance without waiting for c# garbage collection.
/// Please make sure that the resource will not be used again after it is released.
/// Releasing resources prematurely may cause null pointer exceptions in references elsewhere.
///
/// Usage:
/// Use DisposeCPtr() to manually release c++ resources, and then add an interface to release unmanaged memory
/// in DisposeCPtrImpl(IntPtr ptr).
/// </summary>
public abstract class NativeWrapperCPtrDisposable : NativeWrapperDisposable {
public bool isDisposed = false;

正在加载...
取消
保存