Exemplo n.º 1
0
 /// <summary>
 /// Populate matadata tree use record list.
 /// </summary>
 /// <param name="sniffer"></param>
 /// <param name="records">Matadate record list.</param>
 public static void Populate(this Sniffer sniffer, IList <Record> records)
 {
     foreach (var record in records)
     {
         sniffer.Add(record);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Populate matadata tree use record list.
 /// </summary>
 /// <param name="sniffer"></param>
 /// <param name="records">Matadate record list.</param>
 public static void Populate(this Sniffer sniffer, IList <Record> records)
 {
     foreach (var record in records)
     {
         if (record.IsComplexMetadata)
         {
             sniffer.ComplexMetadatas.Add(record);
             continue;
         }
         sniffer.Add(record.Hex.GetByte(), record.Extentions.Split(',', ' '));
     }
 }