public long ReadUnsignedIntLE()
{
long ch1 = this.Read();
long ch2 = this.Read();
long ch3 = this.Read();
long ch4 = this.Read();
if ((ch1 | ch2 | ch3 | ch4) < 0)
throw new EndOfStreamException();
return ((ch4 << 24) + (ch3 << 16) + (ch2 << 8) + (ch1 << 0));
}
private static long ReadUnsignedInt(RandomAccessFileOrArray stream, bool isBigEndian) { if (isBigEndian) { return stream.ReadUnsignedInt(); } else { return stream.ReadUnsignedIntLE(); } }