public E_RABItem Decode(BitArrayInputStream input) { E_RABItem item = new E_RABItem(); item.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.ReadBit(); item.e_RAB_ID = input.ReadBits(4); item.cause = Cause.PerDecoder.Instance.Decode(input); if (stream.Read()) { input.skipUnreadedBits(); item.iE_Extensions = new List <ProtocolExtensionField>(); int nBits = 0x10; int num5 = input.ReadBits(nBits) + 1; for (int i = 0; i < num5; i++) { ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input); item.iE_Extensions.Add(field); } } return(item); }
public E_RABItem Decode(BitArrayInputStream input) { E_RABItem item = new E_RABItem(); item.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.ReadBit(); item.e_RAB_ID = input.ReadBits(4); item.cause = Cause.PerDecoder.Instance.Decode(input); if (stream.Read()) { input.skipUnreadedBits(); item.iE_Extensions = new List<ProtocolExtensionField>(); int nBits = 0x10; int num5 = input.ReadBits(nBits) + 1; for (int i = 0; i < num5; i++) { ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input); item.iE_Extensions.Add(field); } } return item; }