public static void GetSource(int source, SourceLatencyVector2d param, out double value1, out double value2) { Span <double> values = stackalloc double[2]; GetSource(source, param, values); value1 = values[0]; value2 = values[1]; }
public static void GetSource(int source, SourceLatencyVector2d param, Span <double> values) { unsafe { // Beacuse we don't know how this span is allocated we need to fix it fixed(double *ptr = &values[0]) { GetSource(source, param, ptr); } } }
public static void GetSource(int source, SourceLatencyVector2d param, double[] values) => _GetSourcedvArray(source, param, values);
private static void GetSource(int source, SourceLatencyVector2d param, out double values) => _GetSourcedvRef(source, param, out values);
public static unsafe void GetSource(int source, SourceLatencyVector2d param, double *values) => _GetSourcedvPtr(source, param, values);
public static void GetSource(int source, SourceLatencyVector2d param, out Vector2d values) { values.Y = 0; GetSource(source, param, out values.X); }
public static unsafe void GetSource(int source, SourceLatencyVector2d param, Span <double> values) => GetSource(source, param, out values[0]);