Skip to content

Commit 7c058ba

Browse files
defining common structures for cbor
1 parent acfbed2 commit 7c058ba

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/cbor/CBOR.h

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#pragma once
2+
3+
typedef uint64_t CBORTag;
4+
5+
namespace cbor {
6+
namespace tag {
7+
enum : CBORTag {
8+
// Unknown Command Tag https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml
9+
CBORUnknownCmdTag16b = 0xffff, // invalid tag
10+
CBORUnknownCmdTag32b = 0xffffffff, // invalid tag
11+
CBORUnknownCmdTag64b = 0xffffffffffffffff, // invalid tag
12+
CBORUnknownCmdTag = CBORUnknownCmdTag32b
13+
};
14+
}
15+
}

0 commit comments

Comments
 (0)