예제 #1
0
        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];
        }
예제 #2
0
 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);
         }
     }
 }
예제 #3
0
 public static void GetSource(int source, SourceLatencyVector2d param, double[] values) => _GetSourcedvArray(source, param, values);
예제 #4
0
 private static void GetSource(int source, SourceLatencyVector2d param, out double values) => _GetSourcedvRef(source, param, out values);
예제 #5
0
 public static unsafe void GetSource(int source, SourceLatencyVector2d param, double *values) => _GetSourcedvPtr(source, param, values);
예제 #6
0
 public static void GetSource(int source, SourceLatencyVector2d param, out Vector2d values)
 {
     values.Y = 0;
     GetSource(source, param, out values.X);
 }
예제 #7
0
 public static unsafe void GetSource(int source, SourceLatencyVector2d param, Span <double> values)
 => GetSource(source, param, out values[0]);