Esempio n. 1
0
        public DHCPOptionVendorSpecificInformation(string data)
            : base(TDHCPOption.VendorSpecificInformation)
        {
            MemoryStream ms = new MemoryStream();

            ParseHelper.WriteString(ms, ZeroTerminatedStrings, data);
            ms.Flush();
            m_Data = ms.ToArray();
        }
Esempio n. 2
0
 public override void ToStream(Stream s)
 {
     ParseHelper.WriteString(s, ZeroTerminatedStrings, m_Name);
 }