public static double ReadDouble(this FileStream stream, bool isLittleEndian)
 {
     return(BitConverter.Int64BitsToDouble(stream.Read(bytes => BitConverterEx.ToInt64(bytes, 0, isLittleEndian))));
 }
 public static long ReadInt64(this FileStream stream, bool isLittleEndian)
 {
     return(stream.Read(bytes => BitConverterEx.ToInt64(bytes, 0, isLittleEndian)));
 }