# File lib/rubytorrent/bencoding.rb, line 37
  def each
    happy = true
    begin
      happy = false
      c = @s.getc
      @@classes.each do |klass|
        if klass.bencoded? c
          o = klass.parse_bencoding(c, @s)
          happy = true
          yield o
          break
        end
      end unless c.nil?
      unless happy
        @s.ungetc c unless c.nil?
      end
    end while happy
    self
  end