public static void DoubleValues([DNNE.C99Type("struct int_struct_wrapper*")] IntStructWrapperNative *numValues, int length) { for (int i = 0; i < length; i++) { numValues[i].value *= 2; } }
public static byte FillRange([DNNE.C99Type("struct int_struct_wrapper*")] IntStructWrapperNative* numValues, int length, int start) { if (numValues == null) { return 0; } for (int i = 0; i < length; i++, start++) { numValues[i] = new IntStructWrapperNative { value = start }; } return 1; }