class FFI::Function

Public Instance Methods

Retrieve Array of parameter types

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

@return [Array<FFI::Type>]

# File lib/ffi/function.rb, line 49
def param_types
  type.param_types
end

Retrieve the return type of the function

This method returns FFI type returned by the function.

@return [FFI::Type]

# File lib/ffi/function.rb, line 40
def return_type
  type.return_type
end