public void sendTo(PdxWriterImpl writer) {
    if (isEmpty()) {
      return;
    }
    int[] indexes = unreadType.getUnreadFieldIndexes();
    int i = 0;
    while (i < unreadData.length) {
      int idx = indexes[i];
      byte[] data = unreadData[i];
      PdxField ft = unreadType.getPdxFieldByIndex(idx);
      try {
        writer.writeRawField(ft, data);
      } catch (PdxFieldAlreadyExistsException ex) {
        // fix for bug 43133
        throw new PdxFieldAlreadyExistsException(
            "Check the toData and fromData for " + unreadType.getClassName()
                + " to see if the field \"" + ft.getFieldName() + "\" is spelled differently.");
      }
      i++;
    }
  }
Returns the PdxType to use when serializing this unread data. Returns null if we don't know
what this type is yet.

@return the PdxType to use when serializing this unread data.
geode-core/src/main/java/org/apache/geode/pdx/internal/PdxUnreadData.java