예제 #1
0
 /// <summary>
 /// Copies all the data over from the given array to this array.
 /// </summary>
 /// <param name="array">The array to copy to.</param>
 /// <param name="index">The index to copy to.</param>
 /// <param name="start">The start index to copy from.</param>
 /// <param name="count">The number of elements to copy.</param>
 public virtual void CopyFrom(ArrayBase <T> array, long index, long start, long count)
 {
     for (int idx = 0; idx < count; idx++)
     {
         this[index + idx] = array[start + idx];
     }
 }
예제 #2
0
 /// <summary>
 /// Copies all the data over from the given array to this array.
 /// </summary>
 /// <param name="array">The array to copy to.</param>
 /// <param name="count">The number of elements to copy.</param>
 public virtual void CopyFrom(ArrayBase <T> array, long count)
 {
     this.CopyFrom(array, 0, 0, count);
 }
예제 #3
0
 /// <summary>
 /// Copies all the data over from the given array to this array.
 /// </summary>
 /// <param name="array">The array to copy to.</param>
 public virtual void CopyFrom(ArrayBase <T> array)
 {
     this.CopyFrom(array, 0, 0, array.Length);
 }