Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public final IRubyObject invoke(Ruby runtime, Function function, HeapInvocationBuffer args) {
   return info.newStruct(runtime, invoker.invokeStruct(function, args), 0);
 }
Exemplo n.º 3
0
 public StructByValueMarshaller(org.jruby.ext.ffi.StructByValue sbv) {
   layout = sbv.getStructLayout();
 }