示例#1
0
 public OverloadResponse Decode(BitArrayInputStream input)
 {
     OverloadResponse response = new OverloadResponse();
     response.InitDefaults();
     input.ReadBit();
     if (input.ReadBits(1) != 0)
     {
         throw new Exception(GetType().Name + ":NoChoice had been choose");
     }
     int nBits = (input.ReadBit() == 0) ? 2 : 2;
     response.overloadAction = (OverloadAction)input.ReadBits(nBits);
     return response;
 }
示例#2
0
            public OverloadResponse Decode(BitArrayInputStream input)
            {
                OverloadResponse response = new OverloadResponse();

                response.InitDefaults();
                input.ReadBit();
                if (input.ReadBits(1) != 0)
                {
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }
                int nBits = (input.ReadBit() == 0) ? 2 : 2;

                response.overloadAction = (OverloadAction)input.ReadBits(nBits);
                return(response);
            }