Module: CBOR

Defined in:
lib/cbor-packed.rb

Overview

class String

def xeh
  gsub(/\s/, "").chars.each_slice(2).map{ |x| Integer(x.join, 16).chr("BINARY") }.join
end

end

Defined Under Namespace

Modules: Packed Classes: Packer, Unpacker

Constant Summary collapse

PACKED_TAG =
1113
MIXED_PACKED_TAG =
113
REF_TAG =
6
STRAIGHT_11_SIZE =

How many 1+1 straight tags do we have

32
HEX_UC_TAG =
23
HEX_LC_TAG =

‘l’.ord, SQUATTING, fix this

108
RECORD_TAG =

‘r’.ord

114
UNDEFINED =
CBOR::Simple.new(23)
REF_SIZE =

Use with || 4

simple             6(1+0)             6(1+1)
[*Array.new(16, 1), *Array.new(48, 2), *Array.new(512-48, 3)]