示例#1
0
            public QuantityConfigGERAN Decode(BitArrayInputStream input)
            {
                QuantityConfigGERAN ggeran = new QuantityConfigGERAN();

                ggeran.InitDefaults();
                BitMaskStream stream = new BitMaskStream(input, 1);
                int           nBits  = 1;

                ggeran.measQuantityGERAN = (measQuantityGERAN_Enum)input.readBits(nBits);
                if (stream.Read())
                {
                    nBits = (input.readBit() == 0) ? 4 : 4;
                    ggeran.filterCoefficient = (FilterCoefficient)input.readBits(nBits);
                }
                return(ggeran);
            }
示例#2
0
 public QuantityConfigGERAN Decode(BitArrayInputStream input)
 {
     QuantityConfigGERAN ggeran = new QuantityConfigGERAN();
     ggeran.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     int nBits = 1;
     ggeran.measQuantityGERAN = (measQuantityGERAN_Enum)input.readBits(nBits);
     if (stream.Read())
     {
         nBits = (input.readBit() == 0) ? 4 : 4;
         ggeran.filterCoefficient = (FilterCoefficient)input.readBits(nBits);
     }
     return ggeran;
 }