private int ReadInt(RandomAccessFileOrArray stream) { if (isBigEndian) { return stream.ReadInt(); } else { return stream.ReadIntLE(); } }