public void Read(BinaryReader r) { _id = r.ReadUInt64(); EntryListOffset = r.ReadInt32(); EntryListSize = r.ReadInt32(); ObjectName = NameLookup.GetName(ObjectID); InstanceName = NameLookup.GetName(InstanceID); }
public override string ToString() { string oname = ClassName != null ? "\"" + ClassName + "\"" : ObjectID.ToString("X8"); string name = NameLookup.GetName(ObjectID); if (ObjectID == 0xffffffff && InstanceID == 0xffffffff) { return("NULL"); } else { if (name != null) { return(string.Format("Class: {0} ObjectID: {1:X8}(\"{2}\") InstanceID: {3:X8}", oname, ObjectID, name, InstanceID)); } else { return(string.Format("Class: {0} ObjectID: {1:X8} InstanceID: {2:X8}", oname, ObjectID, InstanceID)); } } }