code: public void set(UTF8 other) {
      length = other.length;
      if (bytes == null || length > bytes.length)   // grow buffer
        bytes = new byte[length];
      System.arraycopy(other.bytes, 0, bytes, 0, length);
    }
docs: Set to contain the contents of a string.