Class: Cborb::Decoding::Types::TextString
- Extended by:
- IntegerDecodable
- Defined in:
- lib/cborb/decoding/types/text_string.rb
Overview
To represent major type: 3(definite-length)
Constant Summary
Constants included from IntegerDecodable
IntegerDecodable::UNPACK_TEMPLATES
Class Method Summary collapse
Methods included from IntegerDecodable
Methods inherited from Type
Class Method Details
.decode(state, additional_info) ⇒ Object
8 9 10 11 |
# File 'lib/cborb/decoding/types/text_string.rb', line 8 def self.decode(state, additional_info) bytes = state.consume(consume_as_integer(state, additional_info)) state.accept_value(self, bytes.force_encoding(::Encoding::UTF_8)) end |