public static int write(int n, DataOutputStream stream) throws IOException {
    stream.writeInt(n);
    return INT_LEN;
  }
write an int n to dataOutputStream.

@return The number of bytes used to represent n.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/BasicStructureSerDeUtil.java