protected override byte[] CompileBody() { SwfStream stream = new SwfStream(); stream.WriteInt((int)Flags); stream.WriteString(Name); byte[] abcData = AbcData.Compile(); stream.WriteBytes(abcData); byte[] result = stream; return(result); }
protected override byte[] CompileBody() { SwfStream stream = new SwfStream(); if (TagArray.Length != NameArray.Length) { throw new Exception("Names length and Tags length are not equal in SymbolClassTag"); } stream.WriteShort((short)TagArray.Length); for (int i = 0; i < TagArray.Length; i++) { stream.WriteShort(TagArray[i]); stream.WriteString(NameArray[i]); } return(stream); }