@JRubyMethod(name = { "find_function" }) public IRubyObject findFunction(ThreadContext context, IRubyObject symbolName) { final String sym = symbolName.toString(); final long address = library.getSymbolAddress(sym); if (address == 0L) { return context.nil; } return new Symbol(context.runtime, this, sym, new TextSymbolMemoryIO(context.runtime, this, address)); } @JRubyMethod(name = "name")
@JRubyMethod(name = { "find_function" }) public IRubyObject findFunction(ThreadContext context, IRubyObject symbolName) { final String sym = symbolName.toString(); final long address = library.getSymbolAddress(sym); if (address == 0L) { return context.runtime.getNil(); } return new Symbol(context.runtime, this, sym, new TextSymbolMemoryIO(context.runtime, this, address)); } @JRubyMethod(name = "name")
@JRubyMethod(name = { "find_function" }) public IRubyObject findFunction(ThreadContext context, IRubyObject symbolName) { final String sym = symbolName.toString(); final long address = library.getSymbolAddress(sym); if (address == 0L) { return context.nil; } return new Symbol(context.runtime, this, sym, new TextSymbolMemoryIO(context.runtime, this, address)); } @JRubyMethod(name = "name")
@JRubyMethod(name = { "find_function" }) public IRubyObject findFunction(ThreadContext context, IRubyObject symbolName) { final String sym = symbolName.toString(); final long address = library.getSymbolAddress(sym); if (address == 0L) { return context.runtime.getNil(); } return new Symbol(context.runtime, this, sym, new TextSymbolMemoryIO(context.runtime, this, address)); } @JRubyMethod(name = "name")