Alt-FFI-Raw-Platypus

 view release on metacpan or  search on metacpan

lib/FFI/Raw.pm  view on Meta::CPAN

=head1 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);

=head1 DESCRIPTION

B<FFI::Raw> provides a low-level foreign function interface (FFI) for Perl based
on L<libffi|http://sourceware.org/libffi/>. In essence, 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 B<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



( run in 1.684 second using v1.01-cache-2.11-cpan-302cb4679cc )