FFI::AutoPointer
This s a generic AutoPointer. Gss pointers that implement this class should also implement a
class method called release_ptr that releases the structure pointed to by this pointer.
# File lib/gssapi/lib_gssapi.rb, line 168 def self.release(ptr) if( ptr.address == 0 ) puts "NULL POINTER: Not freeing" if $DEBUG return else puts "Releasing #{self.name} at #{ptr.address.to_s(16)}" if $DEBUG self.release_ptr(ptr) end end
# File lib/gssapi/lib_gssapi.rb, line 163 def address_of ptr_p = FFI::MemoryPointer.new :pointer ptr_p.write_pointer(self) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.