Пример #1
0
 //============================================================================
 /// <summary>
 /// Copies data from one type to this type using the getData() setData() pair.
 /// Assumes that the source and destination are exactly compatible. Arrays will be
 /// resized as required.
 /// </summary>
 /// <param name="srcValue">The source value.</param>
 // adapted from A. Moore 2002
 //============================================================================
 public void copyFrom(TTypedValue srcValue)
 {
     if ((srcValue != null))
     {
         uint iSize = srcValue.sizeBytes();
         if (iSize > 0)
         {
             Byte[] data = new Byte[iSize];
             srcValue.getData(ref data);
             setData(data, (int)iSize, 0);
         }
     }
 }