Class: FFI::AutoPointer::DefaultReleaser
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/ffi-1.15.5/lib/ffi/autopointer.rb
Overview
DefaultReleaser is a Releaser used when an FFI::AutoPointer is defined without Proc or Method. In this case, the pointer to release must be of a class derived from AutoPointer with a #release class method.
Instance Attribute Summary
Attributes inherited from Releaser
Instance Method Summary collapse
-
#release(ptr) ⇒ nil
Release
ptr
using the #release class method of its class.
Methods inherited from Releaser
Constructor Details
This class inherits a constructor from FFI::AutoPointer::Releaser
Instance Method Details
#release(ptr) ⇒ nil
Release ptr
using the #release class method of its class.
161 162 163 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/ffi-1.15.5/lib/ffi/autopointer.rb', line 161 def release(ptr) @proc.release(ptr) end |