02 Jun 2014 13:16:18 UTC
- Distribution: FFI-Raw
- Module version: 0.32
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (6)
- Testers (3401 / 173 / 62)
- KwaliteeBus factor: 0
- 100.00% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity24 month
- Download (970.04KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- LICENSE AND COPYRIGHT
FFI::Raw::Callback - FFI::Raw function pointer type
A FFI::Raw::Callback represents a function pointer to a Perl routine. It can be passed to functions taking a
FFI::Raw::Callbackusing the code reference
$coderefas body. The signature (return and arguments types) must also be passed.
For callbacks with a
FFI::Raw::strreturn type, the string value will be copied to a private field on the callback object. The memory for this value will be freed the next time the callback is called, or when the callback itself is freed. For more exact control over when the return value is freed, you can instead use
FFI::Raw::ptrtype and return a FFI::Raw::MemPtr object.
Alessandro Ghedini <firstname.lastname@example.org>
Copyright 2013 Alessandro Ghedini.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.