public SystemInformationBlockType9 Decode(BitArrayInputStream input)
 {
     int nBits;
     var type = new SystemInformationBlockType9();
     type.InitDefaults();
     var flag = input.ReadBit() != 0;
     var stream = flag ? new BitMaskStream(input, 2) : new BitMaskStream(input, 1);
     if (stream.Read())
     {
         nBits = input.ReadBits(6);
         type.hnb_Name = input.readOctetString(nBits + 1);
     }
     if (flag && stream.Read())
     {
         nBits = input.ReadBits(8);
         type.lateNonCriticalExtension = input.readOctetString(nBits);
     }
     return type;
 }
예제 #2
0
            public SystemInformationBlockType9 Decode(BitArrayInputStream input)
            {
                int nBits;
                var type = new SystemInformationBlockType9();

                type.InitDefaults();
                var flag   = input.ReadBit() != 0;
                var stream = flag ? new BitMaskStream(input, 2) : new BitMaskStream(input, 1);

                if (stream.Read())
                {
                    nBits         = input.ReadBits(6);
                    type.hnb_Name = input.readOctetString(nBits + 1);
                }
                if (flag && stream.Read())
                {
                    nBits = input.ReadBits(8);
                    type.lateNonCriticalExtension = input.readOctetString(nBits);
                }
                return(type);
            }