public UEPagingID Decode(BitArrayInputStream input) { UEPagingID gid = new UEPagingID(); gid.InitDefaults(); input.readBit(); switch (input.readBits(1)) { case 0: gid.s_TMSI = S_TMSI.PerDecoder.Instance.Decode(input); return(gid); case 1: int num = input.readBits(3); input.skipUnreadedBits(); gid.iMSI = input.readOctetString(num + 3); return(gid); } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public UEPagingID Decode(BitArrayInputStream input) { UEPagingID gid = new UEPagingID(); gid.InitDefaults(); input.readBit(); switch (input.readBits(1)) { case 0: gid.s_TMSI = S_TMSI.PerDecoder.Instance.Decode(input); return gid; case 1: int num = input.readBits(3); input.skipUnreadedBits(); gid.iMSI = input.readOctetString(num + 3); return gid; } throw new Exception(GetType().Name + ":NoChoice had been choose"); }