Beispiel #1
0
 public RCSeries(RCSlice index, RCSlice values)
 {
     if (index.SliceView.Length != values.SliceView.Length)
     {
         throw new IndexOutOfRangeException();
     }
     Data    = values;
     IndexIt = index.Iterator;
 }
Beispiel #2
0
 public static RCSeries Create <K, V>(int length)
     where K : unmanaged
     where V : unmanaged
 {
     return(new RCSeries(RCSlice.Create <K>(length), RCSlice.Create <V>(length)));
 }
Beispiel #3
0
 public Slice(Native.Handle.RCSlice slice)
     : base(slice)
 {
 }
Beispiel #4
0
 public static Slice <T> UnsafeMoveFrom(ref Native.Handle.RCSlice handle)
 {
     return(MirExtensionMethods.UnsafeMoveFrom <Slice <T>, Mir.Native.Handle.RCSlice>(ref handle));
 }
Beispiel #5
0
 public RCUniversalSlice(RCSlice slice)
     : this(slice.Length, (IntPtr)1, slice.Iterator)
 {
 }