MCPcopy Create free account
hub / github.com/StudioCherno/Coral / ArrayDemo

Method ArrayDemo

Example/Example.Managed/Source/Main.cs:64–78  ·  view source on GitHub ↗
(float[] InArray)

Source from the content-addressed store, hash-verified

62 }
63
64 public void ArrayDemo(float[] InArray)
65 {
66 NativeArray<float> arr = new(InArray);
67 unsafe { NativeArrayIcall(arr); }
68
69 unsafe
70 {
71 // We use "using" here so that nativeArr is automatically disposed of at
72 // the end of this scope
73 using var nativeArr = ArrayReturnIcall();
74
75 foreach (var v in nativeArr)
76 Console.WriteLine(v);
77 }
78 }
79
80 public int PublicProp
81 {

Callers

nothing calls this directly

Calls 2

NativeArrayIcallFunction · 0.85
ArrayReturnIcallFunction · 0.85

Tested by

no test coverage detected