Class: FFI::Function

Inherits:
Object
  • Object
show all
Defined in:
lib/ffi/function.rb

Instance Method Summary collapse

Instance Method Details

#param_typesArray<FFI::Type>

Retrieve Array of parameter types

This method returns an Array of FFI types accepted as function parameters.

Returns:

  • (Array<FFI::Type>)


49
50
51
# File 'lib/ffi/function.rb', line 49

def param_types
  type.param_types
end

#return_typeFFI::Type

Retrieve the return type of the function

This method returns FFI type returned by the function.

Returns:

  • (FFI::Type)


40
41
42
# File 'lib/ffi/function.rb', line 40

def return_type
  type.return_type
end