7 %include "arrays_csharp.i"
9 %apply int INPUT[] { int* sourceArray }
10 %apply int OUTPUT[] { int* targetArray }
12 %apply int INOUT[] { int* array1 }
13 %apply int INOUT[] { int* array2 }
17 %clear int* sourceArray;
18 %clear int* targetArray;
24 // Below replicates the above array handling but this time using the pinned (fixed) array typemaps
25 %csmethodmodifiers "public unsafe";
27 %apply int FIXED[] { int* sourceArray }
28 %apply int FIXED[] { int* targetArray }
31 void myArrayCopyUsingFixedArrays( int *sourceArray, int* targetArray, int nitems ) {
32 myArrayCopy(sourceArray, targetArray, nitems);
36 %apply int FIXED[] { int* array1 }
37 %apply int FIXED[] { int* array2 }
40 void myArraySwapUsingFixedArrays( int* array1, int* array2, int nitems ) {
41 myArraySwap(array1, array2, nitems);