Module: Cborb::Decoding
- Defined in:
- lib/cborb/decoding/state.rb,
lib/cborb/decoding/decoder.rb,
lib/cborb/decoding/types/type.rb,
lib/cborb/decoding/concatenated.rb,
lib/cborb/decoding/tagged_value.rb,
lib/cborb/decoding/ib_jump_table.rb,
lib/cborb/decoding/simple_buffer.rb,
lib/cborb/decoding/unassigned_simple_value.rb
Defined Under Namespace
Modules: Types Classes: Concatenated, Decoder, SimpleBuffer, State, TaggedValue, UnassignedSimpleValue
Constant Summary collapse
- IB_JUMP_TABLE =
IB = Initial Byte
Array.new(256) do |ib| case ib when 0x00..0x1B Types::Integer when 0x20..0x3B Types::NegativeInteger when 0x40..0x5B Types::ByteString when 0x5F Types::IndefiniteByteString when 0x60..0x7B Types::TextString when 0x7F Types::IndefiniteTextString when 0x80..0x9B Types::Array when 0x9F Types::IndefiniteArray when 0xA0..0xBB Types::Map when 0xBF Types::IndefiniteMap when 0xC0..0xDB Types::Tag when 0xE0..0xF3 Types::UnassignedSimpleValue when 0xF4..0xF7 Types::SimpleValue when 0xF8 Types::UnassignedSimpleValue when 0xF9 Types::HalfPrecisionFloatingPoint when 0xFA, 0xFB Types::FloatingPoint when 0xFC..0xFE Types::UnassignedSimpleValue when 0xFF Types::Break else Types::Unknown end end.freeze