public override bool Equals(System.Object object_Renamed) { bool isEqual = false; if (base.Equals(object_Renamed) && (object_Renamed is DebugID)) { DebugID debugID = (DebugID)object_Renamed; if (equals(debugID.uuid, this.uuid)) { isEqual = true; } } return(isEqual); }
public override void debugID(DebugID tag) { tags.Add(tag); }
public virtual void debugID(DebugID tag) { }
private Tag decodeDebugID(int type, int length) { DebugID t; t = new DebugID(type); t.uuid = decodeFlashUUID(length); if (swdIn != null) { Stream in_Renamed = swdIn; DebugTable swd = new DebugTable(); new DebugDecoder(in_Renamed).readSwd(swd); if (!t.uuid.Equals(swd.uuid_Renamed_Field)) { handler.error("SWD uuid " + swd.uuid_Renamed_Field + " doesn't match " + t.uuid); } else if (swd.version != SwfVersion) { handler.error("SWD version number " + swd.version + " doesn't match SWF version number " + SwfVersion); } else { this.swd = swd; } } else if (swfUrl != null) { // look for a SWD file in the same place the player would look String path = swfUrl.ToString(); int q = path.IndexOf("?"); String query = null; if (q != - 1) { query = path.Substring(q); path = path.Substring(0, (q) - (0)); } System.Uri swdUrl; if (path.EndsWith(".swf")) { path = path.Substring(0, (path.Length - 4) - (0)) + ".swd"; } else { path = path + ".swd"; } if (query != null) { path = path + query; } swdUrl = new System.Uri(path); try { Stream in_Renamed = System.Net.WebRequest.Create(swdUrl).GetResponse().GetResponseStream(); DebugTable swd = new DebugTable(); new DebugDecoder(in_Renamed).readSwd(swd); if (!t.uuid.Equals(swd.uuid_Renamed_Field)) { handler.error("SWD uuid " + swd.uuid_Renamed_Field + " doesn't match " + t.uuid); } else if (swd.version != SwfVersion) { handler.error("SWD version number " + swd.version + " doesn't match SWF version number " + SwfVersion); } else { this.swd = swd; } } catch (FileNotFoundException) { handler.error("SWD not found at url " + swdUrl); } } return t; }