Class: HTS::LibHTS::Tbx
- Inherits:
-
FFI::ManagedStruct
- Object
- FFI::ManagedStruct
- HTS::LibHTS::Tbx
- Defined in:
- lib/hts/libhts/constants.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.release(ptr) ⇒ Object
465 466 467 |
# File 'lib/hts/libhts/constants.rb', line 465 def self.release(ptr) LibHTS.tbx_destroy(ptr) unless ptr.null? end |
Instance Method Details
#close ⇒ Object
454 455 456 457 458 459 460 461 462 463 |
# File 'lib/hts/libhts/constants.rb', line 454 def close return if @closed ptr = to_ptr unless ptr.null? ptr.autorelease = false if ptr.respond_to?(:autorelease=) self.class.release(ptr) end @closed = true end |