public GUMMEI Decode(BitArrayInputStream input) { GUMMEI gummei = new GUMMEI(); gummei.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); gummei.gU_Group_ID = GU_Group_ID.PerDecoder.Instance.Decode(input); input.skipUnreadedBits(); gummei.mME_Code = input.readOctetString(1); if (stream.Read()) { input.skipUnreadedBits(); gummei.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); gummei.iE_Extensions.Add(item); } } return(gummei); }
public GUMMEI Decode(BitArrayInputStream input) { GUMMEI gummei = new GUMMEI(); gummei.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); gummei.gU_Group_ID = GU_Group_ID.PerDecoder.Instance.Decode(input); input.skipUnreadedBits(); gummei.mME_Code = input.readOctetString(1); if (stream.Read()) { input.skipUnreadedBits(); gummei.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); gummei.iE_Extensions.Add(item); } } return gummei; }