/// <summary>
 /// Copy data from Slice to IntPtr.
 /// </summary>
 public static void CopyToIntPtr <TTime>(this Slice <TTime, byte> src, IntPtr dest)
 {
     Marshal.Copy(src.Buffer.Data, (int)src.Offset * src.SliverSize, dest, (int)src.Duration * src.SliverSize);
 }
 /// <summary>
 /// Copy data from IntPtr to Slice.
 /// </summary>
 public static void CopyToSlice <TTime>(this IntPtr src, Slice <TTime, byte> dest)
 {
     Marshal.Copy(src, dest.Buffer.Data, (int)dest.Offset * dest.SliverSize, (int)dest.Duration * dest.SliverSize);
 }