Ejemplo n.º 1
0
        public byte[] ToBytes()
        {
            AbcStream stream = new AbcStream();

            stream.WriteByte((byte)Opcode);
            stream.WriteBytes(InsBytes());
            return(stream);
        }
Ejemplo n.º 2
0
        public byte[] GetBytes()
        {
            AbcStream stream = new AbcStream();

            foreach (var as3Instruction in _instructions)
            {
                stream.WriteBytes(as3Instruction.ToBytes());
            }
            return(stream);
        }