예제 #1
0
        /// <summary>
        /// Returns either a deep or shallow copy, depending on the <see cref="Data.deepCopy">deepCopy</see> field.
        /// </summary>
        new public virtual BigData Clone()
        {
            BigData d = new BigData();

            d.CopyFrom(this);
            return(d);
        }
예제 #2
0
 /// <summary>
 /// Copies from another data array, either with a deep or shallow copy, depending on the
 /// <see cref="Data.deepCopy">src.deepCopy</see> field.
 /// </summary>
 public void CopyFrom(BigData src)
 {
     base.CopyFrom(src);
     if (!src.deepCopy)
     {
         data = src.data;
         n    = src.n;
         buf  = null;
         i    = -1;
     }
 }