Class: HTS::LibHTS::HtsBaseModState

Inherits:
FFI::AutoPointer
  • Object
show all
Defined in:
lib/hts/libhts/constants.rb

Overview

Base modification state (opaque pointer) Use AutoPointer since the structure is opaque and we only need custom release.

Class Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object



379
380
381
# File 'lib/hts/libhts/constants.rb', line 379

def self.release(ptr)
  LibHTS.hts_base_mod_state_free(ptr) unless ptr.null?
end