MCPcopy Create free account
hub / github.com/crazytuzi/UnrealCSharp / ArrayGetRef

Method ArrayGetRef

Script/Interop/Bridge/ArrayBridge.cs:48–65  ·  view source on GitHub ↗
(nint InHandle, int InIndex)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

GetHandleMethod · 0.80
GetValueMethod · 0.80
AllocImplementationMethod · 0.80

Tested by

no test coverage detected