We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ee0306 commit 2b31142Copy full SHA for 2b31142
1 file changed
lib/hts/libhts/constants.rb
@@ -439,7 +439,13 @@ def self.release(ptr)
439
440
FaiFormatOptions = enum(:FAI_NONE, :FAI_FASTA, :FAI_FASTQ)
441
442
- class Faidx < FFI::Struct # FIXME: ManagedStruct
+ # Faidx represents a faidx_t handle which is treated as a
443
+ # file-level RAII object in HTS::Faidx. It is intentionally
444
+ # kept as a plain Struct and is destroyed explicitly via
445
+ # LibHTS.fai_destroy in HTS::Faidx#close. Do not convert this
446
+ # to ManagedStruct; that would interfere with the explicit
447
+ # lifetime managed by the Ruby wrapper.
448
+ class Faidx < FFI::Struct
449
layout :bgzf, BGZF.ptr,
450
:n, :int,
451
:m, :int,
0 commit comments