public static void writeIntArray(int[] array, DataOutput out) throws IOException {

    InternalDataSerializer.checkOut(out);

    StaticSerialization.writeIntArray(array, out);

    if (logger.isTraceEnabled(LogMarker.SERIALIZER_VERBOSE)) {
      logger.trace(LogMarker.SERIALIZER_VERBOSE, "Writing int array of length {}",
          array == null ? "null" : array.length);
    }
  }
Writes an <code>int</code> array to a <code>DataOutput</code>. This method will serialize a
<code>null</code> array and not throw a <code>NullPointerException</code>.

@param array the array of <code>int</code>s to write
@param out the {@link DataInput} to write to

@throws IOException A problem occurs while writing to <code>out</code>

@see #readIntArray
geode-core/src/main/java/org/apache/geode/DataSerializer.java