public S1TNLLoadIndicator Decode(BitArrayInputStream input) { S1TNLLoadIndicator indicator = new S1TNLLoadIndicator(); indicator.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); int nBits = (input.readBit() == 0) ? 2 : 2; indicator.dLS1TNLLoadIndicator = (LoadIndicator)input.readBits(nBits); nBits = (input.readBit() == 0) ? 2 : 2; indicator.uLS1TNLLoadIndicator = (LoadIndicator)input.readBits(nBits); if (stream.Read()) { input.skipUnreadedBits(); indicator.iE_Extensions = new List <ProtocolExtensionField>(); nBits = 0x10; int num5 = input.readBits(nBits) + 1; for (int i = 0; i < num5; i++) { ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input); indicator.iE_Extensions.Add(item); } } return(indicator); }
public S1TNLLoadIndicator Decode(BitArrayInputStream input) { S1TNLLoadIndicator indicator = new S1TNLLoadIndicator(); indicator.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); int nBits = (input.ReadBit() == 0) ? 2 : 2; indicator.dLS1TNLLoadIndicator = (LoadIndicator)input.ReadBits(nBits); nBits = (input.ReadBit() == 0) ? 2 : 2; indicator.uLS1TNLLoadIndicator = (LoadIndicator)input.ReadBits(nBits); if (stream.Read()) { input.skipUnreadedBits(); indicator.iE_Extensions = new List<ProtocolExtensionField>(); nBits = 0x10; int num5 = input.ReadBits(nBits) + 1; for (int i = 0; i < num5; i++) { ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input); indicator.iE_Extensions.Add(item); } } return indicator; }