PERWAPI.CILInstructions.SetInstructions C# (CSharp) Method

SetInstructions() public method

Set the instruction to be the new array of instructions, this will replace any existing instructions. This method cannot be called when in "insert" mode.
public SetInstructions ( CILInstruction insts ) : void
insts CILInstruction The new instructions
return void
        public void SetInstructions(CILInstruction[] insts)
        {
            if (inserting) throw new Exception("Cannot replace instructions during insert.");
            buffer = insts;
            tide = buffer.Length;
            for (int i=0; i < tide; i++) {
                if (insts[i] == null)
                    tide = i;
                insts[i].index = (uint)i;
            }
        }