public static int write(long n, DataOutputStream stream) throws IOException {
    stream.writeLong(n);
    return LONG_LEN;
  }
write a long 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