org.jruby.ext.ffi
Class DataConverter

java.lang.Object
  extended by org.jruby.ext.ffi.DataConverter

public class DataConverter
extends java.lang.Object

Converts data from one FFI type to another.


Constructor Summary
DataConverter()
           
 
Method Summary
static RubyModule createDataConverterModule(Ruby runtime, RubyModule module)
           
static IRubyObject from_native(ThreadContext context, IRubyObject self, IRubyObject value, IRubyObject ctx)
           
static IRubyObject native_type(ThreadContext context, IRubyObject self, IRubyObject[] args)
           
static IRubyObject to_native(ThreadContext context, IRubyObject self, IRubyObject value, IRubyObject ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataConverter

public DataConverter()
Method Detail

createDataConverterModule

public static RubyModule createDataConverterModule(Ruby runtime,
                                                   RubyModule module)

native_type

public static IRubyObject native_type(ThreadContext context,
                                      IRubyObject self,
                                      IRubyObject[] args)

to_native

public static IRubyObject to_native(ThreadContext context,
                                    IRubyObject self,
                                    IRubyObject value,
                                    IRubyObject ctx)

from_native

public static IRubyObject from_native(ThreadContext context,
                                      IRubyObject self,
                                      IRubyObject value,
                                      IRubyObject ctx)


Copyright © 2002-2009 JRuby Team. All Rights Reserved.