/**
  * Copy items from the given buffer to this buffer. The number of items copied is this buffer's
  * length or <TT>theSrc</TT>'s length, whichever is smaller. If <TT>theSrc</TT> is this buffer,
  * the <TT>copy()</TT> method does nothing.
  *
  * @param theSrc Source of items to copy into this buffer.
  * @exception ClassCastException (unchecked exception) Thrown if <TT>theSrc</TT>'s item data type
  *     is not the same as this buffer's item data type.
  */
 public void copy(Buf theSrc) {
   if (theSrc == this) {
   } else if (theSrc instanceof ByteArrayBuf) {
     ByteArrayBuf src = (ByteArrayBuf) theSrc;
     ReduceArrays.reduce(src.myArray, src.myRange, this.myArray, this.myRange, myOp);
   } else {
     ByteBuf.defaultCopy((ByteBuf) theSrc, this);
   }
 }
 /**
  * Copy items from the given buffer to this buffer. The number of items copied is this buffer's
  * length or <TT>theSrc</TT>'s length, whichever is smaller. If <TT>theSrc</TT> is this buffer,
  * the <TT>copy()</TT> method does nothing.
  *
  * @param theSrc Source of items to copy into this buffer.
  * @exception ClassCastException (unchecked exception) Thrown if <TT>theSrc</TT>'s item data type
  *     is not the same as this buffer's item data type.
  */
 public void copy(Buf theSrc) {
   if (theSrc == this) {
   } else if (theSrc instanceof Unsigned8BitIntegerArrayBuf) {
     Unsigned8BitIntegerArrayBuf src = (Unsigned8BitIntegerArrayBuf) theSrc;
     ReduceArrays.reduce(src.myArray, src.myRange, this.myArray, this.myRange, myOp);
   } else {
     Unsigned8BitIntegerBuf.defaultCopy((Unsigned8BitIntegerBuf) theSrc, this);
   }
 }
 /**
  * Copy items from the given buffer to this buffer. The number of items copied is this buffer's
  * length or <TT>theSrc</TT>'s length, whichever is smaller. If <TT>theSrc</TT> is this buffer,
  * the <TT>copy()</TT> method does nothing.
  *
  * @param theSrc Source of items to copy into this buffer.
  * @exception ClassCastException (unchecked exception) Thrown if <TT>theSrc</TT>'s item data type
  *     is not the same as this buffer's item data type.
  */
 public void copy(Buf theSrc) {
   if (theSrc == this) {
   } else if (theSrc instanceof FloatMatrixBuf) {
     FloatMatrixBuf src = (FloatMatrixBuf) theSrc;
     ReduceArrays.reduce(
         src.myMatrix,
         src.myRowRange,
         src.myColRange,
         this.myMatrix,
         this.myRowRange,
         this.myColRange,
         myOp);
   } else {
     FloatBuf.defaultCopy((FloatBuf) theSrc, this);
   }
 }