Re: [Cbor] CBOR Interim: 2019-10-09

Carsten Bormann <cabo@tzi.org> Wed, 09 October 2019 12:24 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B87071200D7 for <cbor@ietfa.amsl.com>; Wed, 9 Oct 2019 05:24:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.198
X-Spam-Level:
X-Spam-Status: No, score=-4.198 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RjGB-M8wtxIz for <cbor@ietfa.amsl.com>; Wed, 9 Oct 2019 05:24:53 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 23E611200B7 for <cbor@ietf.org>; Wed, 9 Oct 2019 05:24:53 -0700 (PDT)
Received: from [192.168.217.110] (p548DCE50.dip0.t-ipconnect.de [84.141.206.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 46pD1b5mnHz10sf; Wed, 9 Oct 2019 14:24:51 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <56A67D4F-7C91-4409-9C54-71D3B7594037@tzi.org>
Date: Wed, 09 Oct 2019 14:24:51 +0200
X-Mao-Original-Outgoing-Id: 592316685.548656-41d234e0960447ad948cf733ac9791cf
Content-Transfer-Encoding: quoted-printable
Message-Id: <D888BE22-4BB1-4F6E-9CC1-BA69BAAC6A72@tzi.org>
References: <CBFCB5E8-4634-4FB0-B056-78D6E115B600@ericsson.com> <56A67D4F-7C91-4409-9C54-71D3B7594037@tzi.org>
To: "cbor@ietf.org" <cbor@ietf.org>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/nyhGVJ5n-1RgyGuoH57Otm0f7vk>
Subject: Re: [Cbor] CBOR Interim: 2019-10-09
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Oct 2019 12:24:55 -0000

On Oct 9, 2019, at 13:31, Carsten Bormann <cabo@tzi.org> wrote:
> 
> including Laurence’s examples but sorting them into slightly different classes (and adding a few)

Below is the result of applying

puts DATA.read.scan(/^\* .*(?:\n  .*)+/).map { |x|
  x.sub(/.*:/m, "").gsub(/[\s\n]+/m, " ").split(",").map(&:strip)
}.flatten

to this section (in case you wonder how to extract the data).  Use “p” instead of “puts” above to get the same in a JSON array.  (Throwing the examples against a couple of my CBOR implementations exposes that in both cases I missed checking that the strings enclosed inside indefinite length strings are definite length.  Thanks, Laurence.)

Grüße, Carsten

18
19
1a
1b
19 01
1a 01 02
1b 01 02 03 04 05 06 07
38
58
78
98
9a 01 ff 00
b8
d8
f8
f9 00
fa 00 00
fb 00 00 00
41
61
5a ff ff ff ff 00
5b ff ff ff ff ff ff ff ff 01 02 03
7a ff ff ff ff 00
7b 7f ff ff ff ff ff ff ff 01 02 03
81
81 81 81 81 81 81 81 81 81
82 00
a1
a2 01 02
a1 00
a2 00 00 00
9f
9f 01 02
bf
bf 01 02 01 02
81 9f
9f 80 00
9f 9f 9f 9f 9f ff ff ff ff
9f 81 9f 81 9f 9f ff ff ff
1c
1d
1e
3c
3d
3e
5c
5d
5e
7c
7d
7e
9c
9d
9e
bc
bd
be
dc
dd
de
fc
fd
fe
5f 00 ff
5f 21 ff
5f 61 00 ff
5f 80 ff
5f a0 ff
5f c0 00 ff
5f e0 ff
7f 41 00 ff
5f 5f 41 00 ff ff
7f 7f 61 00 ff ff
81 ff
82 00 ff
a1 ff
a1 ff 00
a1 00 ff
a2 00 00 ff
9f 81 ff
9f 82 9f 81 9f 9f ff ff ff ff
bf 00 ff
bf 00 00 00 ff