Пример #1
0
        public static double Read_BD(this BitReader reader)
        {
            var twoBits = reader.Read_BB();

            switch (twoBits)
            {
            case 0b00:
                return(reader.ReadDouble());

            case 0b01:
                return(1.0);

            case 0b10:
                return(0.0);

            default:
                throw new DwgReadException("Unsupported bit code.");
            }
        }
Пример #2
0
 public static double Read_RD(this BitReader reader)
 {
     return(reader.ReadDouble());
 }