Exemplo n.º 1
0
                public cellAccessRelatedInfo_Type Decode(BitArrayInputStream input)
                {
                    var type = new cellAccessRelatedInfo_Type();

                    type.InitDefaults();
                    var stream = new BitMaskStream(input, 1);

                    type.plmn_IdentityList = new List <PLMN_IdentityInfo>();
                    var nBits = 3;
                    var num3  = input.ReadBits(nBits) + 1;

                    for (var i = 0; i < num3; i++)
                    {
                        var item = PLMN_IdentityInfo.PerDecoder.Instance.Decode(input);
                        type.plmn_IdentityList.Add(item);
                    }
                    type.trackingAreaCode = input.ReadBitString(0x10);
                    type.cellIdentity     = input.ReadBitString(0x1c);
                    nBits                     = 1;
                    type.cellBarred           = (cellBarred_Enum)input.ReadBits(nBits);
                    nBits                     = 1;
                    type.intraFreqReselection = (intraFreqReselection_Enum)input.ReadBits(nBits);
                    type.csg_Indication       = input.ReadBit() == 1;
                    if (stream.Read())
                    {
                        type.csg_Identity = input.ReadBitString(0x1b);
                    }
                    return(type);
                }
 public cellAccessRelatedInfo_Type Decode(BitArrayInputStream input)
 {
     var type = new cellAccessRelatedInfo_Type();
     type.InitDefaults();
     var stream = new BitMaskStream(input, 1);
     type.plmn_IdentityList = new List<PLMN_IdentityInfo>();
     var nBits = 3;
     var num3 = input.ReadBits(nBits) + 1;
     for (var i = 0; i < num3; i++)
     {
         var item = PLMN_IdentityInfo.PerDecoder.Instance.Decode(input);
         type.plmn_IdentityList.Add(item);
     }
     type.trackingAreaCode = input.ReadBitString(0x10);
     type.cellIdentity = input.ReadBitString(0x1c);
     nBits = 1;
     type.cellBarred = (cellBarred_Enum)input.ReadBits(nBits);
     nBits = 1;
     type.intraFreqReselection = (intraFreqReselection_Enum)input.ReadBits(nBits);
     type.csg_Indication = input.ReadBit() == 1;
     if (stream.Read())
     {
         type.csg_Identity = input.ReadBitString(0x1b);
     }
     return type;
 }