FFI::Raw

Raw FFI library for Perl
Download

FFI::Raw Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Alessandro Ghedini
  • Publisher web site:
  • http://search.cpan.org/~alexbio/

FFI::Raw Tags


FFI::Raw Description

FFI::Raw is a Perl module that provides a raw foreign function interface for Perl based on libffi. It can access and call functions exported by shared libraries without the need to write C/XS code.Dynamic symbols can be automatically resolved at runtime so that the only information needed to use FFI::Raw is the name (or path) of the target library, the name of the function to call and its signature (though it is also possible to pass a function pointer).Note that this module has nothing to do with FFI.SYNOPSIS use FFI::Raw; my $cos = FFI::Raw -> new( 'libm.so', 'cos', FFI::Raw::double, # return value FFI::Raw::double # arg #1 ); say $cos -> call(2.0);Product's homepage


FFI::Raw Related Software