예제 #1
0
            public E_RABReleaseItemBearerRelComp Decode(BitArrayInputStream input)
            {
                E_RABReleaseItemBearerRelComp comp = new E_RABReleaseItemBearerRelComp();

                comp.InitDefaults();
                BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);

                input.readBit();
                comp.e_RAB_ID = input.readBits(4);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    comp.iE_Extensions = new List <ProtocolExtensionField>();
                    int nBits = 0x10;
                    int num5  = input.readBits(nBits) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        comp.iE_Extensions.Add(item);
                    }
                }
                return(comp);
            }
예제 #2
0
 public E_RABReleaseItemBearerRelComp Decode(BitArrayInputStream input)
 {
     E_RABReleaseItemBearerRelComp comp = new E_RABReleaseItemBearerRelComp();
     comp.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.readBit();
     comp.e_RAB_ID = input.readBits(4);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         comp.iE_Extensions = new List<ProtocolExtensionField>();
         int nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             comp.iE_Extensions.Add(item);
         }
     }
     return comp;
 }