用c#的BinaryWriter的Write方法向文件里写int时,字节序是小端,即Little Endian,用java的DataInputStream的readInt方法,往往不能读取正确值. 可以用Integer的reverseBytes方法反转一下字节,就能读取小端数据