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