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

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

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