Sha256: 6b30c8f2a8684711f7e18425d0324ef656740166363faa96b85e969f0331262d

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

module Cborb::Decoding::Types
  # To represent unassigned simple value
  #
  # @see https://tools.ietf.org/html/rfc7049#section-2.3
  class UnassignedSimpleValue < Type
    extend Cborb::Decoding::Types::IntegerDecodable

    def self.decode(state, additional_info)
      simple_value = consume_as_integer(state, additional_info)
      state.accept_value(self, Cborb::Decoding::UnassignedSimpleValue.new(simple_value))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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