Class: LibNetPGP::PGPPubKey

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/netpgp/lowlevel/structs.rb

Class Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object

Note: This is not a ManagedStruct because this struct is a non-pointer member in other structs and that will cause issues. Use FFI::AutoPointer.



66
67
68
69
# File 'lib/netpgp/lowlevel/structs.rb', line 66

def self.release(ptr)
  LibNetPGP::pgp_pubkey_free(ptr)
  LibC::free(ptr)
end