public byte[] ToBytes() { AbcStream stream = new AbcStream(); stream.WriteByte((byte)Opcode); stream.WriteBytes(InsBytes()); return(stream); }
public byte[] GetBytes() { AbcStream stream = new AbcStream(); foreach (var as3Instruction in _instructions) { stream.WriteBytes(as3Instruction.ToBytes()); } return(stream); }