void Load(StructureValueCollection values, ushort index, MetaAddressConverter converter, IList<ITagClass> classList) { int classIndex = (int)values.GetNumber("class index"); if (classIndex >= 0) Class = classList[classIndex]; ushort salt = (ushort)values.GetNumber("datum index salt"); Index = new DatumIndex(salt, index); MetaLocation = new Pointer(values.GetNumber("memory address"), converter); }
public string FindTagName(DatumIndex tagIndex) { if (!tagIndex.IsValid || tagIndex.Index >= _strings.Strings.Count) return null; return _strings.Strings[tagIndex.Index]; }