Class: Bio::MAF::BGZFChunkReader
- Inherits:
-
Object
- Object
- Bio::MAF::BGZFChunkReader
- Defined in:
- lib/bio/maf/parser.rb
Instance Attribute Summary collapse
- #f ⇒ Object readonly
- #r ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(f, _chunk_size) ⇒ BGZFChunkReader
constructor
A new instance of BGZFChunkReader.
- #pos ⇒ Object
- #read_chunk ⇒ Object
- #read_chunk_at(vo, _size) ⇒ Object
Constructor Details
#initialize(f, _chunk_size) ⇒ BGZFChunkReader
Returns a new instance of BGZFChunkReader.
77 78 79 80 |
# File 'lib/bio/maf/parser.rb', line 77 def initialize(f, _chunk_size) @f = f @r = Bio::BGZF::Reader.new(f) end |
Instance Attribute Details
#f ⇒ Object (readonly)
75 76 77 |
# File 'lib/bio/maf/parser.rb', line 75 def f @f end |
#r ⇒ Object (readonly)
75 76 77 |
# File 'lib/bio/maf/parser.rb', line 75 def r @r end |
Instance Method Details
#pos ⇒ Object
82 83 84 |
# File 'lib/bio/maf/parser.rb', line 82 def pos r.tell end |
#read_chunk ⇒ Object
86 87 88 |
# File 'lib/bio/maf/parser.rb', line 86 def read_chunk r.read_block end |
#read_chunk_at(vo, _size) ⇒ Object
90 91 92 |
# File 'lib/bio/maf/parser.rb', line 90 def read_chunk_at(vo, _size) r.read_block_at(vo) end |