Exemple #1
0
 public static double GetF64(Stream data)
 {
     byte[] buff = IOUtil.ReadExpect(data, 8);
     return(System.BitConverter.ToDouble(buff, 0));
 }
Exemple #2
0
        //--------------------------------------------------------------------------------------

        public static float GetF32(Stream data)
        {
            byte[] buff = IOUtil.ReadExpect(data, 4);
            return(System.BitConverter.ToSingle(buff, 0));
        }