private static SwfTag ReadChar(SwfReader reader, SwfTagCode tagCode, byte[] tagData) { var ch = new SwfCharacterAny(tagCode); ch.ReadTagData(tagData, reader); return(ch); }
public virtual SwfTag Clone() { var tc = TagCode; var data = GetData(); var res = SwfTagFactory.Create(tc); if (res != null) { using (var reader = new SwfReader(data)) res.ReadTagData(reader); return(res); } if (IsCharacter(tc)) { using (var reader = new SwfReader(data)) { var c = new SwfCharacterAny(tc); c.ReadTagData(reader); return(c); } } return(new SwfTagAny(tc, data)); }