public ServedCells_Element Decode(BitArrayInputStream input) { int num4; ServedCells_Element element = new ServedCells_Element(); element.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2); element.servedCellInfo = ServedCell_Information.PerDecoder.Instance.Decode(input); if (stream.Read()) { element.neighbour_Info = new List <Neighbour_Information_Element>(); num4 = 10; int num5 = input.readBits(num4); for (int i = 0; i < num5; i++) { Neighbour_Information_Element item = Neighbour_Information_Element.PerDecoder.Instance.Decode(input); element.neighbour_Info.Add(item); } } if (stream.Read()) { input.skipUnreadedBits(); element.iE_Extensions = new List <ProtocolExtensionField>(); num4 = 0x10; int num7 = input.readBits(num4) + 1; for (int j = 0; j < num7; j++) { ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input); element.iE_Extensions.Add(field); } } return(element); }
public static List <ServedCells_Element> Value(BitArrayInputStream input) { input.skipUnreadedBits(); List <ServedCells_Element> list = new List <ServedCells_Element>(); int nBits = 8; int num2 = input.ReadBits(nBits) + 1; for (int i = 0; i < num2; i++) { ServedCells_Element item = ServedCells_Element.PerDecoder.Instance.Decode(input); list.Add(item); } return(list); }
public ServedCells_Element Decode(BitArrayInputStream input) { int num4; ServedCells_Element element = new ServedCells_Element(); element.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2); element.servedCellInfo = ServedCell_Information.PerDecoder.Instance.Decode(input); if (stream.Read()) { element.neighbour_Info = new List<Neighbour_Information_Element>(); num4 = 10; int num5 = input.readBits(num4); for (int i = 0; i < num5; i++) { Neighbour_Information_Element item = Neighbour_Information_Element.PerDecoder.Instance.Decode(input); element.neighbour_Info.Add(item); } } if (stream.Read()) { input.skipUnreadedBits(); element.iE_Extensions = new List<ProtocolExtensionField>(); num4 = 0x10; int num7 = input.readBits(num4) + 1; for (int j = 0; j < num7; j++) { ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input); element.iE_Extensions.Add(field); } } return element; }