Module: FFI::DataConverter
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Extended In:
| |
Included In:
| |
Defined in: | lib/ffi/data_converter.rb |
Overview
This module is used to extend somes classes and give then a common API.
Most of methods defined here must be overridden.
Instance Method Summary
-
#from_native(value, ctx)
Convert from a native type.
-
#native_type(type) ⇒ Type
Get native type.
-
#to_native(value, ctx)
Convert to a native type.
Instance Method Details
#from_native(value, ctx)
Convert from a native type.
# File 'lib/ffi/data_converter.rb', line 63
def from_native(value, ctx) value end
#native_type(type) ⇒ Type
#native_type
Get native type.
#to_native(value, ctx)
Convert to a native type.
# File 'lib/ffi/data_converter.rb', line 58
def to_native(value, ctx) value end