示例#1
0
        /// <summary>
        /// This method retrieves the address array from the byte stream
        /// </summary>
        /// <param name="reader">Byte stream</param>
        public void GetFromStream(SmppReader reader)
        {
            int count = (int)reader.ReadByte();

            for (int i = 0; i < count; ++i)
            {
                multi_address addr = new multi_address();
                addr.GetFromStream(reader);
                Add(addr);
            }
            if (this.Count > MAX_COUNT)
            {
                throw new ArgumentException("Too many address objects in collection, max count allowed is " + MAX_COUNT.ToString());
            }
        }
示例#2
0
 /// <summary>
 /// This method retrieves the C-Octet string from the byte stream
 /// </summary>
 /// <param name="reader">Byte stream</param>
 public void GetFromStream(SmppReader reader)
 {
     addr_.GetFromStream(reader);
     status_ = reader.ReadInt32();
 }