public final IRubyObject invoke( ThreadContext context, Function function, HeapInvocationBuffer args) { Buffer buf = new Buffer( context.getRuntime(), invoker.invokeStruct(function, args), 0, info.getStructLayout().getSize()); return info.getStructClass().newInstance(context, new IRubyObject[] {buf}, Block.NULL_BLOCK); }
public final IRubyObject invoke(Ruby runtime, Function function, HeapInvocationBuffer args) { return info.newStruct(runtime, invoker.invokeStruct(function, args), 0); }
public StructByValueMarshaller(org.jruby.ext.ffi.StructByValue sbv) { layout = sbv.getStructLayout(); }