Sha256: c45f6ec7e05ddcbd0751f06d505017bb10944f54b6df90a07067f1d4e0ada4d5

Contents?: true

Size: 304 Bytes

Versions: 3

Compression:

Stored size: 304 Bytes

Contents

module Cborb::Decoding::Types
  # To represent "break" stop code
  class Break < Type
    def self.decode(state, additional_info)
      unless state.stack_top.indefinite?
        raise Cborb::DecodingError, 'Unexpected "break" stop code'
      end

      state.accept_value(self, self)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cborb-0.3.0 lib/cborb/decoding/types/break.rb
cborb-0.2.0 lib/cborb/decoding/types/break.rb
cborb-0.1.0 lib/cborb/decoding/types/break.rb