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

Method ToIntPtr

Source/Engine/Engine/NativeInterop.Managed.cs:396–397  ·  view source on GitHub ↗
(object value)

Source from the content-addressed store, hash-verified

394 public static explicit operator IntPtr(ManagedHandle value) => ToIntPtr(value);
395
396 [MethodImpl(MethodImplOptions.AggressiveInlining)]
397 public static IntPtr ToIntPtr(object value) => ManagedHandlePool.AllocateHandle(value, GCHandleType.Normal);
398
399 [MethodImpl(MethodImplOptions.AggressiveInlining)]
400 public static IntPtr ToIntPtr(object value, GCHandleType type) => ManagedHandlePool.AllocateHandle(value, type);

Callers 15

GetStringEmptyMethod · 0.80
GetObjectStringMethod · 0.80
UnboxValueMethod · 0.80
InvokeMethodMethod · 0.80
NativeInteropClass · 0.80
ToNativeTypeMethod · 0.80
ToNativePointerMethod · 0.80
ToNativeArrayMethod · 0.80
ToNativeMethod · 0.80
InvokeThunkMethod · 0.80

Calls 1

AllocateHandleMethod · 0.80

Tested by

no test coverage detected