Sha256: 8d4b9d0d21a2ef7ae759899536455ae7e23c4dd04621327f6b74011f53d249e2

Contents?: true

Size: 335 Bytes

Versions: 3

Compression:

Stored size: 335 Bytes

Contents

module Cborb::Decoding::Types
  # To represent major type: 0
  #
  # @see https://tools.ietf.org/html/rfc7049#section-2.1
  class Integer < Type
    extend Cborb::Decoding::Types::IntegerDecodable

    def self.decode(state, additional_info)
      state.accept_value(self, consume_as_integer(state, additional_info))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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