-
Notifications
You must be signed in to change notification settings - Fork 12
Implementation matrix
fpalombini edited this page Mar 6, 2018
·
7 revisions
D = Decode E = Encode
Feature | TinyCBOR | node-cbor | cbor-ruby | impl4 | PeterO.Cbor |
---|---|---|---|---|---|
Major type 0 (uint) | DE | DE | DE | ||
Major type 1 (nint) | DE | DE | DE | ||
Major type 2 (bstr) | DE | DE | DE | ||
Major type 3 (tstr) | DE | DE | DE | ||
Major type 4 (array) | DE | DE | DE | ||
Major type 5 (map) | DE | DE | DE | ||
Major type 6 (tag) | DE | DE | DE | ||
Major type 7 (simple) | DE | DE | DE | ||
Float16 | DE | DE | D | ||
Float32 | DE | DE | DE | ||
Float64 | DE | DE | DE | ||
Indefinite length array/map | DE | D | D | ||
Indefinite length string | D | D | D[1] | ||
Canonical CBOR | DE[2] | DE | D | ||
Tag 0 | DE[2] | D | DE | ||
Tag 1 | DE[2] | DE | DE | ||
Tag 2 | DE[2] | DE | DE | ||
Tag 3 | DE[2] | DE | DE | ||
Tag 4 | DE[2] | DE | DE | ||
Tag 5 | DE[2] | D | DE | ||
Tag 21 | DE[2] | ||||
Tag 22 | DE[2] | ||||
Tag 23 | DE[2] | ||||
Tag 24 | DE[2] | ||||
Tag 32 | DE[2] | DE | DE | ||
Tag 33 | DE[2] | ||||
Tag 34 | DE[2] | ||||
Tag 35 | DE[2] | DE | DE | ||
Tag 36 | DE[2] | ||||
Tag 55799 | DE[2] |
[1]: There appears to be code to implement this, but I have not figured out how to make it run.
[2]: TinyCBOR encodes and decodes what the application code specifically requested. It does not automatically use any tag, does not convert between floating point types and its output may not be canonical. But they are all possibilities in the API.