class Cborb::Decoding::Types::FloatingPoint
To represent part of major type: 7
Constants
- UNPACK_TEMPLATES
Public Class Methods
decode(state, additional_info)
click to toggle source
# File lib/cborb/decoding/types/floating_point.rb, line 11 def self.decode(state, additional_info) index = additional_info - 26 bytesize = 4 * (index + 1) state.accept_value(self, state.consume(bytesize).unpack(UNPACK_TEMPLATES[index]).first) end