Mono.Debugger.Backend.BfdDisassembler.GetInstructionSize C# (CSharp) Method

GetInstructionSize() public method

public GetInstructionSize ( TargetMemoryAccess memory, TargetAddress address ) : int
memory Mono.Debugger.TargetMemoryAccess
address Mono.Debugger.TargetAddress
return int
        public override int GetInstructionSize(TargetMemoryAccess memory, TargetAddress address)
        {
            memory_exception = null;

            try {
                this.memory = memory;
                int count = bfd_glue_disassemble_insn (handle, address.Address);
                if (memory_exception != null)
                    throw memory_exception;
                return count;
            } finally {
                this.memory = null;
                memory_exception = null;
            }
        }