/// <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); } }
/// <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(',', ' ')); } }