Example #1
0
        public StructureValueCollection Serialize(IList <ITagClass> classList)
        {
            var result = new StructureValueCollection();

            result.SetInteger("memory address", (MetaLocation != null) ? MetaLocation.AsPointer() : 0);
            result.SetInteger("class index", (Class != null) ? (uint)classList.IndexOf(Class) : 0xFFFFFFFF);
            result.SetInteger("datum index salt", Index.Salt);
            return(result);
        }
Example #2
0
        public StructureValueCollection Serialize()
        {
            var result = new StructureValueCollection();

            uint addr = 0;

            if (MetaLocation != null)
            {
                addr = (uint)MetaLocation.AsPointer();
            }

            result.SetInteger("tag group magic", (Group != null) ? (uint)Group.Magic : 0xFFFFFFFF);
            result.SetInteger("datum index", Index.Value);
            result.SetInteger("offset", (uint)Offset);
            result.SetInteger("data size", (uint)DataSize);

            return(result);
        }