(float[] InArray)
| 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 | { |
nothing calls this directly
no test coverage detected