new

new(ret, args, abi = Fiddle::DEFAULT)
Class Public methods

Construct a new Closure object.

  • ret is the C type to be returned

  • args is an Array of arguments, passed to the callback function

  • abi is the abi of the closure

If there is an error in preparing the ffi_cif or ffi_prep_closure, then a RuntimeError will be raised.

doc_ruby_on_rails
2015-04-05 20:17:27
Comments
Leave a Comment

Please login to continue.