示例#1
0
        /// <summary>
        ///     Create an X86 Instruction.
        /// </summary>
        /// <param name="disassembler">
        ///     A disassembler.
        /// </param>
        /// <param name="hInstruction">
        ///     An instruction handle.
        /// </param>
        /// <returns>
        ///     An X86 instruction.
        /// </returns>
        internal static X86Instruction Create(CapstoneDisassembler disassembler, NativeInstructionHandle hInstruction)
        {
            var builder = new X86InstructionBuilder();

            builder.Build(disassembler, hInstruction);

            return(builder.Create());
        }
示例#2
0
 /// <summary>
 ///     Create an X86 Instruction.
 /// </summary>
 /// <param name="builder">
 ///     A builder to initialize the object with.
 /// </param>
 internal X86Instruction(X86InstructionBuilder builder) : base(builder)
 {
 }