(nint InHandle)
| 7 | public static class ObjectBridge |
| 8 | { |
| 9 | [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] |
| 10 | public static nint NewObject(nint InHandle) |
| 11 | { |
| 12 | if (HandleData.GetObject(InHandle) is Type Type) |
| 13 | { |
| 14 | var Object = RuntimeHelpers.GetUninitializedObject(Type); |
| 15 | |
| 16 | return HandleData.AllocImplementation(Object, true); |
| 17 | } |
| 18 | |
| 19 | return 0; |
| 20 | } |
| 21 | } |
nothing calls this directly
no test coverage detected