protected override byte[] CompileBody()
        {
            SwfStream stream = new SwfStream();

            stream.WriteShort(Tag);
            stream.WriteInt(0);
            stream.WriteBytes(Data);
            return(stream);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        public byte[] Compile()
        {
            SwfStream stream = new SwfStream();

            byte[] body = CompileBody();
            if (body.Length >= 63)
            {
                stream.WriteShort((short)((Code << 6) | 63));
                stream.WriteInt(body.Length);
            }
            else
            {
                stream.WriteShort((short)((Code << 6) | body.Length));
            }

            stream.WriteBytes(body);

            return(stream);
        }