Sha256: 102158d36c7f29a04f8b078bf41566ad5468c06c71b4b319390157bca3834782

Contents?: true

Size: 613 Bytes

Versions: 11

Compression:

Stored size: 613 Bytes

Contents

#
# = bytequeue.rb
# a class for byte stream queues
#
# Copyright::   Copyright (C) 2011, 2012
#               MISHIMA, Hiroyuki <missy at be.to / hmishima at nagasaki-u.ac.jp> 
# License::     Ruby license (Ryby's / GPLv2 dual)

module Bio
  module Ucsc
    module File
      class ByteQueue
        def initialize(str)
          @str = str
          @index = 0
        end
        
        attr_accessor :index
      
        def next(n)
          result = @str[@index, n]
          @index += n
          result
        end
      end # class ByteQueue
    end # module File
  end # module Ucsc
end # module Bio

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bio-ucsc-api-0.6.5 lib/bio-ucsc/file/bytequeue.rb
bio-ucsc-api-0.6.4 lib/bio-ucsc/file/bytequeue.rb
bio-ucsc-api-0.6.3 lib/bio-ucsc/file/bytequeue.rb
bio-ucsc-api-0.6.2 lib/bio-ucsc/file/bytequeue.rb
bio-ucsc-api-0.6.1 lib/bio-ucsc/file/bytequeue.rb
bio-ucsc-api-0.6.0 lib/bio-ucsc/file/bytequeue.rb
bio-ucsc-api-0.5.3 lib/bio-ucsc/file/bytequeue.rb
bio-ucsc-api-0.5.2 lib/bio-ucsc/file/bytequeue.rb
bio-ucsc-api-0.5.1 lib/bio-ucsc/file/bytequeue.rb
bio-ucsc-api-0.5.0 lib/bio-ucsc/file/bytequeue.rb
bio-ucsc-api-0.4.0 lib/bio-ucsc/file/bytequeue.rb