code: public void duplicate(Text destination) {
          System.arraycopy(chars, pos, destination.chars, destination.pos, len);
          destination.len = len;
      }
docs: Copies data from this buffer to another buffer.
  
  @param destination the pointer to another buffer.