(nint InHandle, int InIndex)
| 46 | } |
| 47 | |
| 48 | [UnmanagedCallersOnly] |
| 49 | public static nint ArrayGetRef(nint InHandle, int InIndex) |
| 50 | { |
| 51 | if (HandleData.GetHandle(InHandle) is { IsAllocated: true, Target: Array Array }) |
| 52 | { |
| 53 | if (InIndex < Array.Length) |
| 54 | { |
| 55 | var Value = Array.GetValue(InIndex); |
| 56 | |
| 57 | if (Value != null) |
| 58 | { |
| 59 | return HandleData.AllocImplementation(Value); |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | return 0; |
| 65 | } |
| 66 | } |
nothing calls this directly
no test coverage detected