private long ReadLong(RandomAccessFileOrArray stream) { if (isBigEndian) { return(stream.ReadLong()); } else { return(stream.ReadLongLE()); } }