Class: Bio::DB::SAM::Tools::BamHeaderT
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Bio::DB::SAM::Tools::BamHeaderT
- Defined in:
- lib/bio/db/sam/sam.rb
Overview
typedef struct {
int32_t n_targets;
char **target_name;
uint32_t *target_len;
void *dict, *hash, *rg2lib;
int l_text;
char *text;
} bam_header_t;
Instance Method Summary collapse
Instance Method Details
#text ⇒ Object
42 43 44 |
# File 'lib/bio/db/sam/sam.rb', line 42 def text @text.get_string(0) end |
#text=(str) ⇒ Object
38 39 40 41 |
# File 'lib/bio/db/sam/sam.rb', line 38 def text=(str) @text = FFI::MemoryPointer.from_string(str) self[:text] = @text end |