class Cborb::Decoding::Types::NegativeInteger
To represent major type: 1
Public Class Methods
decode(state, additional_info)
click to toggle source
# File lib/cborb/decoding/types/negative_integer.rb, line 8 def self.decode(state, additional_info) state.accept_value(self, -(consume_as_integer(state, additional_info) + 1)) end