FFI::Platypus::Type::PtrObject is a helper type for FFI::Platypus that handles
type checking for the common pattern where a Perl class is a simple wrapper
around an opaque pointer. The class should be implemented as a hash reference,
and the pointer itself is expected to be stored on the ptr key. If the caller of
the interface (Perl) is responsible for cleaning up the memory, then it normally
should be done in the DESTROY method (as above).
If you do not pass in the correct type, it will be detected before the C code is
called and an exception will be thrown. (otherwise you would probably get a
segment violation SEGV).
*: Change *_DEPENDS from p5-Test2-Suite to p5-Test-Simple
- Bump PORTREVISION of the following dependent ports for dependency change
- databases/p5-DBIx-QuickDB
- devel/p5-Shell-Config-Generate
- devel/p5-Test-Archive-Libarchive
- devel/p5-Test-Future-IO-Impl
- devel/p5-Test2-Harness
- devel/p5-Test2-Harness-UI
- devel/p5-Test2-Plugin-DBIProfile
Test2-Suite has been merged into Test-Simple since 1.302200.
Reference: https://metacpan.org/dist/Test-Simple/changes
devel/p5-FFI-Platypus-Type-PtrObject: Add p5-FFI-Platypus-Type-PtrObject 0.03
FFI::Platypus::Type::PtrObject is a helper type for FFI::Platypus that handles
type checking for the common pattern where a Perl class is a simple wrapper
around an opaque pointer. The class should be implemented as a hash reference,
and the pointer itself is expected to be stored on the ptr key. If the caller of
the interface (Perl) is responsible for cleaning up the memory, then it normally
should be done in the DESTROY method (as above).
If you do not pass in the correct type, it will be detected before the C code is
called and an exception will be thrown. (otherwise you would probably get a
segment violation SEGV).