instance method feed

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

feed(aBuf)

No documentation comment.

Parameters

aBuf req
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escprober.rb, line 63
    def feed(aBuf)
      aBuf.each_byte do |b|
        c = b.chr
        for codingSM in @_mCodingSM
          next unless codingSM
          next unless codingSM.active
          codingState = codingSM.next_state(c)
          if codingState == EError
            codingSM.active = false
            @_mActiveSM -= 1
            if @_mActiveSM <= 0
              @_mState = ENotMe
              return get_state()
            end
          elsif codingState == EItsMe
            @_mState = EFoundIt
            @_mDetectedCharset = codingSM.get_coding_state_machine()
            return get_state()
          end
        end
      end
      return get_state()

    end

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escprober.rb line 63 · View on GitHub · Improve this page · Find usages on GitHub

Defined in CharDet::EscCharSetProber

Type at least 2 characters to search.

↑↓ navigate · open · esc close