cbor / cbor.github.io

cbor.io web site
75 stars 33 forks source link

Creating a byte string using cbor.me #47

Closed tautologyclub closed 5 years ago

tautologyclub commented 5 years ago

How do I define a byte string using diagnostic notation using cbor.me? [0xa, 0xb, 0xc, 0xd] gives me # array(4).

cabo commented 5 years ago

The diagnostic notation for byte strings for what I think you are trying to do is: h'0a0b0c0d' as in http://cbor.me/?diag=h%270a0b0c0d%27

In CBOR, a byte string is a different construct from an array of integers.

tautologyclub commented 5 years ago

tyvm