public LastVisitedEUTRANCellInformation Decode(BitArrayInputStream input) { LastVisitedEUTRANCellInformation information = new LastVisitedEUTRANCellInformation(); information.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); information.global_Cell_ID = ECGI.PerDecoder.Instance.Decode(input); information.cellType = CellType.PerDecoder.Instance.Decode(input); input.skipUnreadedBits(); information.time_UE_StayedInCell = input.readBits(0x10); if (stream.Read()) { input.skipUnreadedBits(); information.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); information.iE_Extensions.Add(item); } } return(information); }
public LastVisitedEUTRANCellInformation Decode(BitArrayInputStream input) { LastVisitedEUTRANCellInformation information = new LastVisitedEUTRANCellInformation(); information.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); information.global_Cell_ID = ECGI.PerDecoder.Instance.Decode(input); information.cellType = CellType.PerDecoder.Instance.Decode(input); input.skipUnreadedBits(); information.time_UE_StayedInCell = input.ReadBits(0x10); if (stream.Read()) { input.skipUnreadedBits(); information.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); information.iE_Extensions.Add(item); } } return information; }