(byte* InFullName, int InLength)
| 6 | public static unsafe class ArrayBridge |
| 7 | { |
| 8 | [UnmanagedCallersOnly] |
| 9 | public static nint NewArray(byte* InFullName, int InLength) |
| 10 | { |
| 11 | if (InFullName != null && InLength > 0) |
| 12 | { |
| 13 | var FullName = Marshal.PtrToStringUTF8((nint)InFullName)!; |
| 14 | |
| 15 | var Type = TypeBridge.GetTypeImplementation(FullName); |
| 16 | |
| 17 | if (Type != null) |
| 18 | { |
| 19 | var Handle = GCHandle.Alloc(Array.CreateInstance(Type, InLength), GCHandleType.Pinned); |
| 20 | |
| 21 | return HandleData.AddEntity(Handle); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | [UnmanagedCallersOnly] |
| 29 | public static nint ArrayGet(nint InHandle, int InIndex) |
nothing calls this directly
no test coverage detected