Class: FFI::Function
- Inherits:
-
Object
- Object
- FFI::Function
- Defined in:
- lib/ffi/function.rb
Instance Method Summary collapse
-
#param_types ⇒ Array<FFI::Type>
Retrieve Array of parameter types.
-
#return_type ⇒ FFI::Type
Retrieve the return type of the function.
Instance Method Details
#param_types ⇒ Array<FFI::Type>
Retrieve Array of parameter types
This method returns an Array of FFI types accepted as function parameters.
49 50 51 |
# File 'lib/ffi/function.rb', line 49 def param_types type.param_types end |
#return_type ⇒ FFI::Type
Retrieve the return type of the function
This method returns FFI type returned by the function.
40 41 42 |
# File 'lib/ffi/function.rb', line 40 def return_type type.return_type end |