MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Free

Method Free

Source/Engine/Engine/NativeInterop.Managed.cs:156–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154 }
155
156 public void Free()
157 {
158 GC.SuppressFinalize(this);
159 if (_managedHandle.IsAllocated)
160 {
161 _managedHandle.Free();
162 _unmanagedData = IntPtr.Zero;
163 }
164 if (_unmanagedData != IntPtr.Zero)
165 {
166 NativeInterop.NativeFree(_unmanagedData.ToPointer());
167 _unmanagedData = IntPtr.Zero;
168 _unmanagedAllocationSize = 0;
169 }
170 }
171
172 public void FreePooled()
173 {

Callers 9

CloseAssemblyMethod · 0.45
FreeGCHandleMethod · 0.45
PinValueMethod · 0.45
WrapArrayMethod · 0.45
FreePooledMethod · 0.45
FreeMethod · 0.45
FreeHandleMethod · 0.45

Calls 2

NativeFreeMethod · 0.80
ToPointerMethod · 0.80

Tested by

no test coverage detected