コード例 #1
0
ファイル: CodeMatcher.cs プロジェクト: Windows10CE/Harmony
 /// <summary>Sets an instruction at current position</summary>
 /// <param name="instruction">The instruction to set</param>
 /// <returns>The same code matcher</returns>
 ///
 public CodeMatcher SetInstruction(CodeInstruction instruction)
 {
     codes[Pos] = instruction;
     return(this);
 }
コード例 #2
0
ファイル: CodeMatcher.cs プロジェクト: Windows10CE/Harmony
 /// <summary>Sets instruction at current position and advances</summary>
 /// <param name="instruction">The instruction</param>
 /// <returns>The same code matcher</returns>
 ///
 public CodeMatcher SetInstructionAndAdvance(CodeInstruction instruction)
 {
     _ = SetInstruction(instruction);
     Pos++;
     return(this);
 }
コード例 #3
0
 /// <summary>Create a full copy (including labels and exception blocks) of a CodeInstruction</summary>
 /// <param name="instruction">The instruction to copy</param>
 ///
 public CodeInstruction(CodeInstruction instruction)
 {
     throw new PlatformNotSupportedException();
 }