コード例 #1
0
        /// <summary>
        /// This method retrieves the Tlv from a byte stream object.
        /// </summary>
        /// <param name="stm">Byte stream</param>
        public override void GetFromStream(SmppReader stm)
        {
            hasValue_ = true;
            Tag       = stm.ReadShort();
            int length = stm.ReadShort();

            if (length != 0)
            {
                throw new TlvException("Invalid length encountered for alert_on_message_delivery (was " + length.ToString() + ", should be zero.)");
            }
        }