xref: /netbsd-src/external/mit/libcbor/dist/docs/doxygen/common_8h.html (revision 5dd36a3bc8bf2a9dec29ceb6349550414570c447)
1*5dd36a3bSchristos<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2*5dd36a3bSchristos<html xmlns="http://www.w3.org/1999/xhtml">
3*5dd36a3bSchristos<head>
4*5dd36a3bSchristos<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5*5dd36a3bSchristos<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6*5dd36a3bSchristos<meta name="generator" content="Doxygen 1.8.12"/>
7*5dd36a3bSchristos<meta name="viewport" content="width=device-width, initial-scale=1"/>
8*5dd36a3bSchristos<title>libcbor: src/cbor/common.h File Reference</title>
9*5dd36a3bSchristos<link href="tabs.css" rel="stylesheet" type="text/css"/>
10*5dd36a3bSchristos<script type="text/javascript" src="jquery.js"></script>
11*5dd36a3bSchristos<script type="text/javascript" src="dynsections.js"></script>
12*5dd36a3bSchristos<link href="search/search.css" rel="stylesheet" type="text/css"/>
13*5dd36a3bSchristos<script type="text/javascript" src="search/searchdata.js"></script>
14*5dd36a3bSchristos<script type="text/javascript" src="search/search.js"></script>
15*5dd36a3bSchristos<link href="doxygen.css" rel="stylesheet" type="text/css" />
16*5dd36a3bSchristos<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
17*5dd36a3bSchristos</head>
18*5dd36a3bSchristos<body>
19*5dd36a3bSchristos<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
20*5dd36a3bSchristos<div id="titlearea">
21*5dd36a3bSchristos<table cellspacing="0" cellpadding="0">
22*5dd36a3bSchristos <tbody>
23*5dd36a3bSchristos <tr style="height: 56px;">
24*5dd36a3bSchristos  <td id="projectalign" style="padding-left: 0.5em;">
25*5dd36a3bSchristos   <div id="projectname">libcbor
26*5dd36a3bSchristos   &#160;<span id="projectnumber">0.5.0</span>
27*5dd36a3bSchristos   </div>
28*5dd36a3bSchristos   <div id="projectbrief">libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.</div>
29*5dd36a3bSchristos  </td>
30*5dd36a3bSchristos </tr>
31*5dd36a3bSchristos </tbody>
32*5dd36a3bSchristos</table>
33*5dd36a3bSchristos</div>
34*5dd36a3bSchristos<!-- end header part -->
35*5dd36a3bSchristos<!-- Generated by Doxygen 1.8.12 -->
36*5dd36a3bSchristos<script type="text/javascript">
37*5dd36a3bSchristosvar searchBox = new SearchBox("searchBox", "search",false,'Search');
38*5dd36a3bSchristos</script>
39*5dd36a3bSchristos<script type="text/javascript" src="menudata.js"></script>
40*5dd36a3bSchristos<script type="text/javascript" src="menu.js"></script>
41*5dd36a3bSchristos<script type="text/javascript">
42*5dd36a3bSchristos$(function() {
43*5dd36a3bSchristos  initMenu('',true,false,'search.php','Search');
44*5dd36a3bSchristos  $(document).ready(function() { init_search(); });
45*5dd36a3bSchristos});
46*5dd36a3bSchristos</script>
47*5dd36a3bSchristos<div id="main-nav"></div>
48*5dd36a3bSchristos<!-- window showing the filter options -->
49*5dd36a3bSchristos<div id="MSearchSelectWindow"
50*5dd36a3bSchristos     onmouseover="return searchBox.OnSearchSelectShow()"
51*5dd36a3bSchristos     onmouseout="return searchBox.OnSearchSelectHide()"
52*5dd36a3bSchristos     onkeydown="return searchBox.OnSearchSelectKey(event)">
53*5dd36a3bSchristos</div>
54*5dd36a3bSchristos
55*5dd36a3bSchristos<!-- iframe showing the search results (closed by default) -->
56*5dd36a3bSchristos<div id="MSearchResultsWindow">
57*5dd36a3bSchristos<iframe src="javascript:void(0)" frameborder="0"
58*5dd36a3bSchristos        name="MSearchResults" id="MSearchResults">
59*5dd36a3bSchristos</iframe>
60*5dd36a3bSchristos</div>
61*5dd36a3bSchristos
62*5dd36a3bSchristos<div id="nav-path" class="navpath">
63*5dd36a3bSchristos  <ul>
64*5dd36a3bSchristos<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_cb565ba51d82ea933604984cbab6233d.html">cbor</a></li>  </ul>
65*5dd36a3bSchristos</div>
66*5dd36a3bSchristos</div><!-- top -->
67*5dd36a3bSchristos<div class="header">
68*5dd36a3bSchristos  <div class="summary">
69*5dd36a3bSchristos<a href="#define-members">Macros</a> &#124;
70*5dd36a3bSchristos<a href="#typedef-members">Typedefs</a> &#124;
71*5dd36a3bSchristos<a href="#func-members">Functions</a> &#124;
72*5dd36a3bSchristos<a href="#var-members">Variables</a>  </div>
73*5dd36a3bSchristos  <div class="headertitle">
74*5dd36a3bSchristos<div class="title">common.h File Reference</div>  </div>
75*5dd36a3bSchristos</div><!--header-->
76*5dd36a3bSchristos<div class="contents">
77*5dd36a3bSchristos<div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br />
78*5dd36a3bSchristos<code>#include &lt;stddef.h&gt;</code><br />
79*5dd36a3bSchristos<code>#include &lt;stdint.h&gt;</code><br />
80*5dd36a3bSchristos<code>#include &lt;stdbool.h&gt;</code><br />
81*5dd36a3bSchristos<code>#include &lt;assert.h&gt;</code><br />
82*5dd36a3bSchristos<code>#include &quot;<a class="el" href="data_8h_source.html">data.h</a>&quot;</code><br />
83*5dd36a3bSchristos<code>#include &quot;cbor/configuration.h&quot;</code><br />
84*5dd36a3bSchristos</div>
85*5dd36a3bSchristos<p><a href="common_8h_source.html">Go to the source code of this file.</a></p>
86*5dd36a3bSchristos<table class="memberdecls">
87*5dd36a3bSchristos<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
88*5dd36a3bSchristosMacros</h2></td></tr>
89*5dd36a3bSchristos<tr class="memitem:a9ac79315ed2dcf2c9587e8e3a9a6bc97"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a9ac79315ed2dcf2c9587e8e3a9a6bc97">CBOR_RESTRICT_POINTER</a>&#160;&#160;&#160;CBOR_RESTRICT_SPECIFIER</td></tr>
90*5dd36a3bSchristos<tr class="separator:a9ac79315ed2dcf2c9587e8e3a9a6bc97"><td class="memSeparator" colspan="2">&#160;</td></tr>
91*5dd36a3bSchristos<tr class="memitem:a956e417f98370dd1a96e4dac2e0ed7dd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a956e417f98370dd1a96e4dac2e0ed7dd">CBOR_VERSION</a>&#160;&#160;&#160;<a class="el" href="common_8h.html#ae45fd01d870751555ae09a0257f40eb2">TO_STR</a>(CBOR_MAJOR_VERSION) &quot;.&quot; <a class="el" href="common_8h.html#ae45fd01d870751555ae09a0257f40eb2">TO_STR</a>(CBOR_MINOR_VERSION) &quot;.&quot; <a class="el" href="common_8h.html#ae45fd01d870751555ae09a0257f40eb2">TO_STR</a>(CBOR_PATCH_VERSION)</td></tr>
92*5dd36a3bSchristos<tr class="separator:a956e417f98370dd1a96e4dac2e0ed7dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
93*5dd36a3bSchristos<tr class="memitem:ac61efb646fdd1936ac0ce32829f947b8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ac61efb646fdd1936ac0ce32829f947b8">CBOR_HEX_VERSION</a>&#160;&#160;&#160;((CBOR_MAJOR_VERSION &lt;&lt; 16) | (CBOR_MINOR_VERSION &lt;&lt; 8) | CBOR_PATCH_VERSION)</td></tr>
94*5dd36a3bSchristos<tr class="separator:ac61efb646fdd1936ac0ce32829f947b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
95*5dd36a3bSchristos<tr class="memitem:a7377cc956f5c81538f0fbf0a0492a539"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a7377cc956f5c81538f0fbf0a0492a539">debug_print</a>(fmt, ...)&#160;&#160;&#160;do {} while (0)</td></tr>
96*5dd36a3bSchristos<tr class="separator:a7377cc956f5c81538f0fbf0a0492a539"><td class="memSeparator" colspan="2">&#160;</td></tr>
97*5dd36a3bSchristos<tr class="memitem:a4576b20b5200a67aa939a1ce7fc27bd9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a4576b20b5200a67aa939a1ce7fc27bd9">TO_STR_</a>(x)&#160;&#160;&#160;#x</td></tr>
98*5dd36a3bSchristos<tr class="separator:a4576b20b5200a67aa939a1ce7fc27bd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
99*5dd36a3bSchristos<tr class="memitem:ae45fd01d870751555ae09a0257f40eb2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ae45fd01d870751555ae09a0257f40eb2">TO_STR</a>(x)&#160;&#160;&#160;<a class="el" href="common_8h.html#a4576b20b5200a67aa939a1ce7fc27bd9">TO_STR_</a>(x) /* enables proper double expansion */</td></tr>
100*5dd36a3bSchristos<tr class="separator:ae45fd01d870751555ae09a0257f40eb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
101*5dd36a3bSchristos<tr class="memitem:a07a781e9212fad361b0f59f7fc921057"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a07a781e9212fad361b0f59f7fc921057">_CBOR_MALLOC</a>&#160;&#160;&#160;<a class="el" href="common_8h.html#a3218c24af00a3efeaecb1716c8f5a289">_cbor_malloc</a></td></tr>
102*5dd36a3bSchristos<tr class="separator:a07a781e9212fad361b0f59f7fc921057"><td class="memSeparator" colspan="2">&#160;</td></tr>
103*5dd36a3bSchristos<tr class="memitem:a1e39038d9b8e9b3a1e6529c9ff6091b8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a1e39038d9b8e9b3a1e6529c9ff6091b8">_CBOR_REALLOC</a>&#160;&#160;&#160;<a class="el" href="common_8h.html#a84ecc1fc92c3812ab6ced693f2c6254c">_cbor_realloc</a></td></tr>
104*5dd36a3bSchristos<tr class="separator:a1e39038d9b8e9b3a1e6529c9ff6091b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
105*5dd36a3bSchristos<tr class="memitem:a1300043d7db8adf6ab67f7b787f14635"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a1300043d7db8adf6ab67f7b787f14635">_CBOR_FREE</a>&#160;&#160;&#160;<a class="el" href="common_8h.html#a994f4145360ef0bfa3c48e59a5ca7186">_cbor_free</a></td></tr>
106*5dd36a3bSchristos<tr class="separator:a1300043d7db8adf6ab67f7b787f14635"><td class="memSeparator" colspan="2">&#160;</td></tr>
107*5dd36a3bSchristos</table><table class="memberdecls">
108*5dd36a3bSchristos<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
109*5dd36a3bSchristosTypedefs</h2></td></tr>
110*5dd36a3bSchristos<tr class="memitem:ad89d15c2e3f18e8914fcdffe4d725d42"><td class="memItemLeft" align="right" valign="top">typedef void *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ad89d15c2e3f18e8914fcdffe4d725d42">_cbor_malloc_t</a>) (size_t)</td></tr>
111*5dd36a3bSchristos<tr class="separator:ad89d15c2e3f18e8914fcdffe4d725d42"><td class="memSeparator" colspan="2">&#160;</td></tr>
112*5dd36a3bSchristos<tr class="memitem:a5b52369a95930104d33301d12faabe75"><td class="memItemLeft" align="right" valign="top">typedef void *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a5b52369a95930104d33301d12faabe75">_cbor_realloc_t</a>) (void *, size_t)</td></tr>
113*5dd36a3bSchristos<tr class="separator:a5b52369a95930104d33301d12faabe75"><td class="memSeparator" colspan="2">&#160;</td></tr>
114*5dd36a3bSchristos<tr class="memitem:af05bb33f6d22cdac535576c8edaf208c"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#af05bb33f6d22cdac535576c8edaf208c">_cbor_free_t</a>) (void *)</td></tr>
115*5dd36a3bSchristos<tr class="separator:af05bb33f6d22cdac535576c8edaf208c"><td class="memSeparator" colspan="2">&#160;</td></tr>
116*5dd36a3bSchristos</table><table class="memberdecls">
117*5dd36a3bSchristos<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
118*5dd36a3bSchristosFunctions</h2></td></tr>
119*5dd36a3bSchristos<tr class="memitem:a3f9f1d527374dbb4b48ef3fafa92e0bf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a3f9f1d527374dbb4b48ef3fafa92e0bf">cbor_set_allocs</a> (<a class="el" href="common_8h.html#ad89d15c2e3f18e8914fcdffe4d725d42">_cbor_malloc_t</a> custom_malloc, <a class="el" href="common_8h.html#a5b52369a95930104d33301d12faabe75">_cbor_realloc_t</a> custom_realloc, <a class="el" href="common_8h.html#af05bb33f6d22cdac535576c8edaf208c">_cbor_free_t</a> custom_free)</td></tr>
120*5dd36a3bSchristos<tr class="memdesc:a3f9f1d527374dbb4b48ef3fafa92e0bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the memory management routines to use.  <a href="#a3f9f1d527374dbb4b48ef3fafa92e0bf">More...</a><br /></td></tr>
121*5dd36a3bSchristos<tr class="separator:a3f9f1d527374dbb4b48ef3fafa92e0bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
122*5dd36a3bSchristos<tr class="memitem:ac2b9aba4cf07857524a0a520eabeef52"><td class="memItemLeft" align="right" valign="top"><a class="el" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6">cbor_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ac2b9aba4cf07857524a0a520eabeef52">cbor_typeof</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
123*5dd36a3bSchristos<tr class="memdesc:ac2b9aba4cf07857524a0a520eabeef52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the type of the item.  <a href="#ac2b9aba4cf07857524a0a520eabeef52">More...</a><br /></td></tr>
124*5dd36a3bSchristos<tr class="separator:ac2b9aba4cf07857524a0a520eabeef52"><td class="memSeparator" colspan="2">&#160;</td></tr>
125*5dd36a3bSchristos<tr class="memitem:a682a023f7012a5b66a57847e6f8d386f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a682a023f7012a5b66a57847e6f8d386f">cbor_isa_uint</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
126*5dd36a3bSchristos<tr class="memdesc:a682a023f7012a5b66a57847e6f8d386f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does the item have the appropriate major type?  <a href="#a682a023f7012a5b66a57847e6f8d386f">More...</a><br /></td></tr>
127*5dd36a3bSchristos<tr class="separator:a682a023f7012a5b66a57847e6f8d386f"><td class="memSeparator" colspan="2">&#160;</td></tr>
128*5dd36a3bSchristos<tr class="memitem:a0ca5042e3807d2cc9c3d40f9266460dd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a0ca5042e3807d2cc9c3d40f9266460dd">cbor_isa_negint</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
129*5dd36a3bSchristos<tr class="memdesc:a0ca5042e3807d2cc9c3d40f9266460dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does the item have the appropriate major type?  <a href="#a0ca5042e3807d2cc9c3d40f9266460dd">More...</a><br /></td></tr>
130*5dd36a3bSchristos<tr class="separator:a0ca5042e3807d2cc9c3d40f9266460dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
131*5dd36a3bSchristos<tr class="memitem:adedaf37527b8d8261e287a0001e5a190"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#adedaf37527b8d8261e287a0001e5a190">cbor_isa_bytestring</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
132*5dd36a3bSchristos<tr class="memdesc:adedaf37527b8d8261e287a0001e5a190"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does the item have the appropriate major type?  <a href="#adedaf37527b8d8261e287a0001e5a190">More...</a><br /></td></tr>
133*5dd36a3bSchristos<tr class="separator:adedaf37527b8d8261e287a0001e5a190"><td class="memSeparator" colspan="2">&#160;</td></tr>
134*5dd36a3bSchristos<tr class="memitem:a02edd93bb8eab83bc2b8f8bf5d7d1335"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a02edd93bb8eab83bc2b8f8bf5d7d1335">cbor_isa_string</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
135*5dd36a3bSchristos<tr class="memdesc:a02edd93bb8eab83bc2b8f8bf5d7d1335"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does the item have the appropriate major type?  <a href="#a02edd93bb8eab83bc2b8f8bf5d7d1335">More...</a><br /></td></tr>
136*5dd36a3bSchristos<tr class="separator:a02edd93bb8eab83bc2b8f8bf5d7d1335"><td class="memSeparator" colspan="2">&#160;</td></tr>
137*5dd36a3bSchristos<tr class="memitem:a9ed0fa96105c211867c5032f2a5a8b20"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a9ed0fa96105c211867c5032f2a5a8b20">cbor_isa_array</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
138*5dd36a3bSchristos<tr class="memdesc:a9ed0fa96105c211867c5032f2a5a8b20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does the item have the appropriate major type?  <a href="#a9ed0fa96105c211867c5032f2a5a8b20">More...</a><br /></td></tr>
139*5dd36a3bSchristos<tr class="separator:a9ed0fa96105c211867c5032f2a5a8b20"><td class="memSeparator" colspan="2">&#160;</td></tr>
140*5dd36a3bSchristos<tr class="memitem:af0de041481b61922d0995b63f82d8ddd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#af0de041481b61922d0995b63f82d8ddd">cbor_isa_map</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
141*5dd36a3bSchristos<tr class="memdesc:af0de041481b61922d0995b63f82d8ddd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does the item have the appropriate major type?  <a href="#af0de041481b61922d0995b63f82d8ddd">More...</a><br /></td></tr>
142*5dd36a3bSchristos<tr class="separator:af0de041481b61922d0995b63f82d8ddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
143*5dd36a3bSchristos<tr class="memitem:a0d5054202c5ec9375e8daf5930087a61"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a0d5054202c5ec9375e8daf5930087a61">cbor_isa_tag</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
144*5dd36a3bSchristos<tr class="memdesc:a0d5054202c5ec9375e8daf5930087a61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does the item have the appropriate major type?  <a href="#a0d5054202c5ec9375e8daf5930087a61">More...</a><br /></td></tr>
145*5dd36a3bSchristos<tr class="separator:a0d5054202c5ec9375e8daf5930087a61"><td class="memSeparator" colspan="2">&#160;</td></tr>
146*5dd36a3bSchristos<tr class="memitem:a983dec76e934c49ed6979226f9db4386"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a983dec76e934c49ed6979226f9db4386">cbor_isa_float_ctrl</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
147*5dd36a3bSchristos<tr class="memdesc:a983dec76e934c49ed6979226f9db4386"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does the item have the appropriate major type?  <a href="#a983dec76e934c49ed6979226f9db4386">More...</a><br /></td></tr>
148*5dd36a3bSchristos<tr class="separator:a983dec76e934c49ed6979226f9db4386"><td class="memSeparator" colspan="2">&#160;</td></tr>
149*5dd36a3bSchristos<tr class="memitem:a4e705f34221ba434756a4a1f8e3325e6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a4e705f34221ba434756a4a1f8e3325e6">cbor_is_int</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
150*5dd36a3bSchristos<tr class="memdesc:a4e705f34221ba434756a4a1f8e3325e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is the item an integer, either positive or negative?  <a href="#a4e705f34221ba434756a4a1f8e3325e6">More...</a><br /></td></tr>
151*5dd36a3bSchristos<tr class="separator:a4e705f34221ba434756a4a1f8e3325e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
152*5dd36a3bSchristos<tr class="memitem:a4dde28c548375aa954f1cad15b3739aa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a4dde28c548375aa954f1cad15b3739aa">cbor_is_float</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
153*5dd36a3bSchristos<tr class="memdesc:a4dde28c548375aa954f1cad15b3739aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is the item an a floating point number?  <a href="#a4dde28c548375aa954f1cad15b3739aa">More...</a><br /></td></tr>
154*5dd36a3bSchristos<tr class="separator:a4dde28c548375aa954f1cad15b3739aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
155*5dd36a3bSchristos<tr class="memitem:a5618a3689e31829f4f84da008e20798e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a5618a3689e31829f4f84da008e20798e">cbor_is_bool</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
156*5dd36a3bSchristos<tr class="memdesc:a5618a3689e31829f4f84da008e20798e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is the item an a boolean?  <a href="#a5618a3689e31829f4f84da008e20798e">More...</a><br /></td></tr>
157*5dd36a3bSchristos<tr class="separator:a5618a3689e31829f4f84da008e20798e"><td class="memSeparator" colspan="2">&#160;</td></tr>
158*5dd36a3bSchristos<tr class="memitem:ad1f5efac647b4d9c437c4441d1177e01"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ad1f5efac647b4d9c437c4441d1177e01">cbor_is_null</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
159*5dd36a3bSchristos<tr class="memdesc:ad1f5efac647b4d9c437c4441d1177e01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does this item represent <code>null</code>  <a href="#ad1f5efac647b4d9c437c4441d1177e01">More...</a><br /></td></tr>
160*5dd36a3bSchristos<tr class="separator:ad1f5efac647b4d9c437c4441d1177e01"><td class="memSeparator" colspan="2">&#160;</td></tr>
161*5dd36a3bSchristos<tr class="memitem:afb7eb76a2953224c96d194640f3092e3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#afb7eb76a2953224c96d194640f3092e3">cbor_is_undef</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
162*5dd36a3bSchristos<tr class="memdesc:afb7eb76a2953224c96d194640f3092e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does this item represent <code>undefined</code>  <a href="#afb7eb76a2953224c96d194640f3092e3">More...</a><br /></td></tr>
163*5dd36a3bSchristos<tr class="separator:afb7eb76a2953224c96d194640f3092e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
164*5dd36a3bSchristos<tr class="memitem:aa62e72f275c2f0fa604896bfed18e992"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#aa62e72f275c2f0fa604896bfed18e992">cbor_incref</a> (<a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
165*5dd36a3bSchristos<tr class="memdesc:aa62e72f275c2f0fa604896bfed18e992"><td class="mdescLeft">&#160;</td><td class="mdescRight">Increases the reference count by one.  <a href="#aa62e72f275c2f0fa604896bfed18e992">More...</a><br /></td></tr>
166*5dd36a3bSchristos<tr class="separator:aa62e72f275c2f0fa604896bfed18e992"><td class="memSeparator" colspan="2">&#160;</td></tr>
167*5dd36a3bSchristos<tr class="memitem:aa10ebec46eddc9312ec46a0898b5d196"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#aa10ebec46eddc9312ec46a0898b5d196">cbor_decref</a> (<a class="el" href="structcbor__item__t.html">cbor_item_t</a> **item)</td></tr>
168*5dd36a3bSchristos<tr class="memdesc:aa10ebec46eddc9312ec46a0898b5d196"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decreases the reference count by one, deallocating the item if needed.  <a href="#aa10ebec46eddc9312ec46a0898b5d196">More...</a><br /></td></tr>
169*5dd36a3bSchristos<tr class="separator:aa10ebec46eddc9312ec46a0898b5d196"><td class="memSeparator" colspan="2">&#160;</td></tr>
170*5dd36a3bSchristos<tr class="memitem:a4ed20937cc091bc1f481d53787fe306b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a4ed20937cc091bc1f481d53787fe306b">cbor_intermediate_decref</a> (<a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
171*5dd36a3bSchristos<tr class="memdesc:a4ed20937cc091bc1f481d53787fe306b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decreases the reference count by one, deallocating the item if needed.  <a href="#a4ed20937cc091bc1f481d53787fe306b">More...</a><br /></td></tr>
172*5dd36a3bSchristos<tr class="separator:a4ed20937cc091bc1f481d53787fe306b"><td class="memSeparator" colspan="2">&#160;</td></tr>
173*5dd36a3bSchristos<tr class="memitem:ab27dda20ad909cebaee1b2f43e676f2c"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ab27dda20ad909cebaee1b2f43e676f2c">cbor_refcount</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
174*5dd36a3bSchristos<tr class="memdesc:ab27dda20ad909cebaee1b2f43e676f2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the reference count.  <a href="#ab27dda20ad909cebaee1b2f43e676f2c">More...</a><br /></td></tr>
175*5dd36a3bSchristos<tr class="separator:ab27dda20ad909cebaee1b2f43e676f2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
176*5dd36a3bSchristos<tr class="memitem:a327dce45c1cb680953555290dba8e35b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a327dce45c1cb680953555290dba8e35b">cbor_move</a> (<a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr>
177*5dd36a3bSchristos<tr class="memdesc:a327dce45c1cb680953555290dba8e35b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides CPP-like move construct.  <a href="#a327dce45c1cb680953555290dba8e35b">More...</a><br /></td></tr>
178*5dd36a3bSchristos<tr class="separator:a327dce45c1cb680953555290dba8e35b"><td class="memSeparator" colspan="2">&#160;</td></tr>
179*5dd36a3bSchristos</table><table class="memberdecls">
180*5dd36a3bSchristos<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
181*5dd36a3bSchristosVariables</h2></td></tr>
182*5dd36a3bSchristos<tr class="memitem:a3218c24af00a3efeaecb1716c8f5a289"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#ad89d15c2e3f18e8914fcdffe4d725d42">_cbor_malloc_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a3218c24af00a3efeaecb1716c8f5a289">_cbor_malloc</a></td></tr>
183*5dd36a3bSchristos<tr class="separator:a3218c24af00a3efeaecb1716c8f5a289"><td class="memSeparator" colspan="2">&#160;</td></tr>
184*5dd36a3bSchristos<tr class="memitem:a84ecc1fc92c3812ab6ced693f2c6254c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a5b52369a95930104d33301d12faabe75">_cbor_realloc_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a84ecc1fc92c3812ab6ced693f2c6254c">_cbor_realloc</a></td></tr>
185*5dd36a3bSchristos<tr class="separator:a84ecc1fc92c3812ab6ced693f2c6254c"><td class="memSeparator" colspan="2">&#160;</td></tr>
186*5dd36a3bSchristos<tr class="memitem:a994f4145360ef0bfa3c48e59a5ca7186"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#af05bb33f6d22cdac535576c8edaf208c">_cbor_free_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a994f4145360ef0bfa3c48e59a5ca7186">_cbor_free</a></td></tr>
187*5dd36a3bSchristos<tr class="separator:a994f4145360ef0bfa3c48e59a5ca7186"><td class="memSeparator" colspan="2">&#160;</td></tr>
188*5dd36a3bSchristos</table>
189*5dd36a3bSchristos<h2 class="groupheader">Macro Definition Documentation</h2>
190*5dd36a3bSchristos<a id="a1300043d7db8adf6ab67f7b787f14635"></a>
191*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a1300043d7db8adf6ab67f7b787f14635">&sect;&nbsp;</a></span>_CBOR_FREE</h2>
192*5dd36a3bSchristos
193*5dd36a3bSchristos<div class="memitem">
194*5dd36a3bSchristos<div class="memproto">
195*5dd36a3bSchristos      <table class="memname">
196*5dd36a3bSchristos        <tr>
197*5dd36a3bSchristos          <td class="memname">#define _CBOR_FREE&#160;&#160;&#160;<a class="el" href="common_8h.html#a994f4145360ef0bfa3c48e59a5ca7186">_cbor_free</a></td>
198*5dd36a3bSchristos        </tr>
199*5dd36a3bSchristos      </table>
200*5dd36a3bSchristos</div><div class="memdoc">
201*5dd36a3bSchristos
202*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00086">86</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
203*5dd36a3bSchristos
204*5dd36a3bSchristos</div>
205*5dd36a3bSchristos</div>
206*5dd36a3bSchristos<a id="a07a781e9212fad361b0f59f7fc921057"></a>
207*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a07a781e9212fad361b0f59f7fc921057">&sect;&nbsp;</a></span>_CBOR_MALLOC</h2>
208*5dd36a3bSchristos
209*5dd36a3bSchristos<div class="memitem">
210*5dd36a3bSchristos<div class="memproto">
211*5dd36a3bSchristos      <table class="memname">
212*5dd36a3bSchristos        <tr>
213*5dd36a3bSchristos          <td class="memname">#define _CBOR_MALLOC&#160;&#160;&#160;<a class="el" href="common_8h.html#a3218c24af00a3efeaecb1716c8f5a289">_cbor_malloc</a></td>
214*5dd36a3bSchristos        </tr>
215*5dd36a3bSchristos      </table>
216*5dd36a3bSchristos</div><div class="memdoc">
217*5dd36a3bSchristos
218*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00084">84</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
219*5dd36a3bSchristos
220*5dd36a3bSchristos</div>
221*5dd36a3bSchristos</div>
222*5dd36a3bSchristos<a id="a1e39038d9b8e9b3a1e6529c9ff6091b8"></a>
223*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a1e39038d9b8e9b3a1e6529c9ff6091b8">&sect;&nbsp;</a></span>_CBOR_REALLOC</h2>
224*5dd36a3bSchristos
225*5dd36a3bSchristos<div class="memitem">
226*5dd36a3bSchristos<div class="memproto">
227*5dd36a3bSchristos      <table class="memname">
228*5dd36a3bSchristos        <tr>
229*5dd36a3bSchristos          <td class="memname">#define _CBOR_REALLOC&#160;&#160;&#160;<a class="el" href="common_8h.html#a84ecc1fc92c3812ab6ced693f2c6254c">_cbor_realloc</a></td>
230*5dd36a3bSchristos        </tr>
231*5dd36a3bSchristos      </table>
232*5dd36a3bSchristos</div><div class="memdoc">
233*5dd36a3bSchristos
234*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00085">85</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
235*5dd36a3bSchristos
236*5dd36a3bSchristos</div>
237*5dd36a3bSchristos</div>
238*5dd36a3bSchristos<a id="ac61efb646fdd1936ac0ce32829f947b8"></a>
239*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ac61efb646fdd1936ac0ce32829f947b8">&sect;&nbsp;</a></span>CBOR_HEX_VERSION</h2>
240*5dd36a3bSchristos
241*5dd36a3bSchristos<div class="memitem">
242*5dd36a3bSchristos<div class="memproto">
243*5dd36a3bSchristos      <table class="memname">
244*5dd36a3bSchristos        <tr>
245*5dd36a3bSchristos          <td class="memname">#define CBOR_HEX_VERSION&#160;&#160;&#160;((CBOR_MAJOR_VERSION &lt;&lt; 16) | (CBOR_MINOR_VERSION &lt;&lt; 8) | CBOR_PATCH_VERSION)</td>
246*5dd36a3bSchristos        </tr>
247*5dd36a3bSchristos      </table>
248*5dd36a3bSchristos</div><div class="memdoc">
249*5dd36a3bSchristos
250*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00042">42</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
251*5dd36a3bSchristos
252*5dd36a3bSchristos</div>
253*5dd36a3bSchristos</div>
254*5dd36a3bSchristos<a id="a9ac79315ed2dcf2c9587e8e3a9a6bc97"></a>
255*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a9ac79315ed2dcf2c9587e8e3a9a6bc97">&sect;&nbsp;</a></span>CBOR_RESTRICT_POINTER</h2>
256*5dd36a3bSchristos
257*5dd36a3bSchristos<div class="memitem">
258*5dd36a3bSchristos<div class="memproto">
259*5dd36a3bSchristos      <table class="memname">
260*5dd36a3bSchristos        <tr>
261*5dd36a3bSchristos          <td class="memname">#define CBOR_RESTRICT_POINTER&#160;&#160;&#160;CBOR_RESTRICT_SPECIFIER</td>
262*5dd36a3bSchristos        </tr>
263*5dd36a3bSchristos      </table>
264*5dd36a3bSchristos</div><div class="memdoc">
265*5dd36a3bSchristos
266*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00033">33</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
267*5dd36a3bSchristos
268*5dd36a3bSchristos</div>
269*5dd36a3bSchristos</div>
270*5dd36a3bSchristos<a id="a956e417f98370dd1a96e4dac2e0ed7dd"></a>
271*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a956e417f98370dd1a96e4dac2e0ed7dd">&sect;&nbsp;</a></span>CBOR_VERSION</h2>
272*5dd36a3bSchristos
273*5dd36a3bSchristos<div class="memitem">
274*5dd36a3bSchristos<div class="memproto">
275*5dd36a3bSchristos      <table class="memname">
276*5dd36a3bSchristos        <tr>
277*5dd36a3bSchristos          <td class="memname">#define CBOR_VERSION&#160;&#160;&#160;<a class="el" href="common_8h.html#ae45fd01d870751555ae09a0257f40eb2">TO_STR</a>(CBOR_MAJOR_VERSION) &quot;.&quot; <a class="el" href="common_8h.html#ae45fd01d870751555ae09a0257f40eb2">TO_STR</a>(CBOR_MINOR_VERSION) &quot;.&quot; <a class="el" href="common_8h.html#ae45fd01d870751555ae09a0257f40eb2">TO_STR</a>(CBOR_PATCH_VERSION)</td>
278*5dd36a3bSchristos        </tr>
279*5dd36a3bSchristos      </table>
280*5dd36a3bSchristos</div><div class="memdoc">
281*5dd36a3bSchristos
282*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00041">41</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
283*5dd36a3bSchristos
284*5dd36a3bSchristos</div>
285*5dd36a3bSchristos</div>
286*5dd36a3bSchristos<a id="a7377cc956f5c81538f0fbf0a0492a539"></a>
287*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a7377cc956f5c81538f0fbf0a0492a539">&sect;&nbsp;</a></span>debug_print</h2>
288*5dd36a3bSchristos
289*5dd36a3bSchristos<div class="memitem">
290*5dd36a3bSchristos<div class="memproto">
291*5dd36a3bSchristos      <table class="memname">
292*5dd36a3bSchristos        <tr>
293*5dd36a3bSchristos          <td class="memname">#define debug_print</td>
294*5dd36a3bSchristos          <td>(</td>
295*5dd36a3bSchristos          <td class="paramtype">&#160;</td>
296*5dd36a3bSchristos          <td class="paramname">fmt, </td>
297*5dd36a3bSchristos        </tr>
298*5dd36a3bSchristos        <tr>
299*5dd36a3bSchristos          <td class="paramkey"></td>
300*5dd36a3bSchristos          <td></td>
301*5dd36a3bSchristos          <td class="paramtype">&#160;</td>
302*5dd36a3bSchristos          <td class="paramname"><em>...</em>&#160;</td>
303*5dd36a3bSchristos        </tr>
304*5dd36a3bSchristos        <tr>
305*5dd36a3bSchristos          <td></td>
306*5dd36a3bSchristos          <td>)</td>
307*5dd36a3bSchristos          <td></td><td>&#160;&#160;&#160;do {} while (0)</td>
308*5dd36a3bSchristos        </tr>
309*5dd36a3bSchristos      </table>
310*5dd36a3bSchristos</div><div class="memdoc">
311*5dd36a3bSchristos
312*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00053">53</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
313*5dd36a3bSchristos
314*5dd36a3bSchristos</div>
315*5dd36a3bSchristos</div>
316*5dd36a3bSchristos<a id="ae45fd01d870751555ae09a0257f40eb2"></a>
317*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ae45fd01d870751555ae09a0257f40eb2">&sect;&nbsp;</a></span>TO_STR</h2>
318*5dd36a3bSchristos
319*5dd36a3bSchristos<div class="memitem">
320*5dd36a3bSchristos<div class="memproto">
321*5dd36a3bSchristos      <table class="memname">
322*5dd36a3bSchristos        <tr>
323*5dd36a3bSchristos          <td class="memname">#define TO_STR</td>
324*5dd36a3bSchristos          <td>(</td>
325*5dd36a3bSchristos          <td class="paramtype">&#160;</td>
326*5dd36a3bSchristos          <td class="paramname">x</td><td>)</td>
327*5dd36a3bSchristos          <td>&#160;&#160;&#160;<a class="el" href="common_8h.html#a4576b20b5200a67aa939a1ce7fc27bd9">TO_STR_</a>(x) /* enables proper double expansion */</td>
328*5dd36a3bSchristos        </tr>
329*5dd36a3bSchristos      </table>
330*5dd36a3bSchristos</div><div class="memdoc">
331*5dd36a3bSchristos
332*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00057">57</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
333*5dd36a3bSchristos
334*5dd36a3bSchristos</div>
335*5dd36a3bSchristos</div>
336*5dd36a3bSchristos<a id="a4576b20b5200a67aa939a1ce7fc27bd9"></a>
337*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a4576b20b5200a67aa939a1ce7fc27bd9">&sect;&nbsp;</a></span>TO_STR_</h2>
338*5dd36a3bSchristos
339*5dd36a3bSchristos<div class="memitem">
340*5dd36a3bSchristos<div class="memproto">
341*5dd36a3bSchristos      <table class="memname">
342*5dd36a3bSchristos        <tr>
343*5dd36a3bSchristos          <td class="memname">#define TO_STR_</td>
344*5dd36a3bSchristos          <td>(</td>
345*5dd36a3bSchristos          <td class="paramtype">&#160;</td>
346*5dd36a3bSchristos          <td class="paramname">x</td><td>)</td>
347*5dd36a3bSchristos          <td>&#160;&#160;&#160;#x</td>
348*5dd36a3bSchristos        </tr>
349*5dd36a3bSchristos      </table>
350*5dd36a3bSchristos</div><div class="memdoc">
351*5dd36a3bSchristos
352*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00056">56</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
353*5dd36a3bSchristos
354*5dd36a3bSchristos</div>
355*5dd36a3bSchristos</div>
356*5dd36a3bSchristos<h2 class="groupheader">Typedef Documentation</h2>
357*5dd36a3bSchristos<a id="af05bb33f6d22cdac535576c8edaf208c"></a>
358*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#af05bb33f6d22cdac535576c8edaf208c">&sect;&nbsp;</a></span>_cbor_free_t</h2>
359*5dd36a3bSchristos
360*5dd36a3bSchristos<div class="memitem">
361*5dd36a3bSchristos<div class="memproto">
362*5dd36a3bSchristos      <table class="memname">
363*5dd36a3bSchristos        <tr>
364*5dd36a3bSchristos          <td class="memname">typedef void(*  _cbor_free_t) (void *)</td>
365*5dd36a3bSchristos        </tr>
366*5dd36a3bSchristos      </table>
367*5dd36a3bSchristos</div><div class="memdoc">
368*5dd36a3bSchristos
369*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00063">63</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
370*5dd36a3bSchristos
371*5dd36a3bSchristos</div>
372*5dd36a3bSchristos</div>
373*5dd36a3bSchristos<a id="ad89d15c2e3f18e8914fcdffe4d725d42"></a>
374*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ad89d15c2e3f18e8914fcdffe4d725d42">&sect;&nbsp;</a></span>_cbor_malloc_t</h2>
375*5dd36a3bSchristos
376*5dd36a3bSchristos<div class="memitem">
377*5dd36a3bSchristos<div class="memproto">
378*5dd36a3bSchristos      <table class="memname">
379*5dd36a3bSchristos        <tr>
380*5dd36a3bSchristos          <td class="memname">typedef void*(*  _cbor_malloc_t) (size_t)</td>
381*5dd36a3bSchristos        </tr>
382*5dd36a3bSchristos      </table>
383*5dd36a3bSchristos</div><div class="memdoc">
384*5dd36a3bSchristos
385*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00061">61</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
386*5dd36a3bSchristos
387*5dd36a3bSchristos</div>
388*5dd36a3bSchristos</div>
389*5dd36a3bSchristos<a id="a5b52369a95930104d33301d12faabe75"></a>
390*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a5b52369a95930104d33301d12faabe75">&sect;&nbsp;</a></span>_cbor_realloc_t</h2>
391*5dd36a3bSchristos
392*5dd36a3bSchristos<div class="memitem">
393*5dd36a3bSchristos<div class="memproto">
394*5dd36a3bSchristos      <table class="memname">
395*5dd36a3bSchristos        <tr>
396*5dd36a3bSchristos          <td class="memname">typedef void*(*  _cbor_realloc_t) (void *, size_t)</td>
397*5dd36a3bSchristos        </tr>
398*5dd36a3bSchristos      </table>
399*5dd36a3bSchristos</div><div class="memdoc">
400*5dd36a3bSchristos
401*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8h_source.html#l00062">62</a> of file <a class="el" href="common_8h_source.html">common.h</a>.</p>
402*5dd36a3bSchristos
403*5dd36a3bSchristos</div>
404*5dd36a3bSchristos</div>
405*5dd36a3bSchristos<h2 class="groupheader">Function Documentation</h2>
406*5dd36a3bSchristos<a id="aa10ebec46eddc9312ec46a0898b5d196"></a>
407*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#aa10ebec46eddc9312ec46a0898b5d196">&sect;&nbsp;</a></span>cbor_decref()</h2>
408*5dd36a3bSchristos
409*5dd36a3bSchristos<div class="memitem">
410*5dd36a3bSchristos<div class="memproto">
411*5dd36a3bSchristos      <table class="memname">
412*5dd36a3bSchristos        <tr>
413*5dd36a3bSchristos          <td class="memname">void cbor_decref </td>
414*5dd36a3bSchristos          <td>(</td>
415*5dd36a3bSchristos          <td class="paramtype"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> **&#160;</td>
416*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
417*5dd36a3bSchristos          <td></td>
418*5dd36a3bSchristos        </tr>
419*5dd36a3bSchristos      </table>
420*5dd36a3bSchristos</div><div class="memdoc">
421*5dd36a3bSchristos
422*5dd36a3bSchristos<p>Decreases the reference count by one, deallocating the item if needed. </p>
423*5dd36a3bSchristos<p>In case the item is deallocated, the reference count of any dependent items is adjusted accordingly in a recursive manner.</p>
424*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
425*5dd36a3bSchristos  <table class="params">
426*5dd36a3bSchristos    <tr><td class="paramname">item[take]</td><td>the item. Set to <code>NULL</code> if deallocated </td></tr>
427*5dd36a3bSchristos  </table>
428*5dd36a3bSchristos  </dd>
429*5dd36a3bSchristos</dl>
430*5dd36a3bSchristos
431*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00099">99</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
432*5dd36a3bSchristos
433*5dd36a3bSchristos</div>
434*5dd36a3bSchristos</div>
435*5dd36a3bSchristos<a id="aa62e72f275c2f0fa604896bfed18e992"></a>
436*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#aa62e72f275c2f0fa604896bfed18e992">&sect;&nbsp;</a></span>cbor_incref()</h2>
437*5dd36a3bSchristos
438*5dd36a3bSchristos<div class="memitem">
439*5dd36a3bSchristos<div class="memproto">
440*5dd36a3bSchristos      <table class="memname">
441*5dd36a3bSchristos        <tr>
442*5dd36a3bSchristos          <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_incref </td>
443*5dd36a3bSchristos          <td>(</td>
444*5dd36a3bSchristos          <td class="paramtype"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
445*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
446*5dd36a3bSchristos          <td></td>
447*5dd36a3bSchristos        </tr>
448*5dd36a3bSchristos      </table>
449*5dd36a3bSchristos</div><div class="memdoc">
450*5dd36a3bSchristos
451*5dd36a3bSchristos<p>Increases the reference count by one. </p>
452*5dd36a3bSchristos<p>No dependent items are affected.</p>
453*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
454*5dd36a3bSchristos  <table class="params">
455*5dd36a3bSchristos    <tr><td class="paramname">item[incref]</td><td>item the item </td></tr>
456*5dd36a3bSchristos  </table>
457*5dd36a3bSchristos  </dd>
458*5dd36a3bSchristos</dl>
459*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>the input reference </dd></dl>
460*5dd36a3bSchristos
461*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00093">93</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
462*5dd36a3bSchristos
463*5dd36a3bSchristos</div>
464*5dd36a3bSchristos</div>
465*5dd36a3bSchristos<a id="a4ed20937cc091bc1f481d53787fe306b"></a>
466*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a4ed20937cc091bc1f481d53787fe306b">&sect;&nbsp;</a></span>cbor_intermediate_decref()</h2>
467*5dd36a3bSchristos
468*5dd36a3bSchristos<div class="memitem">
469*5dd36a3bSchristos<div class="memproto">
470*5dd36a3bSchristos      <table class="memname">
471*5dd36a3bSchristos        <tr>
472*5dd36a3bSchristos          <td class="memname">void cbor_intermediate_decref </td>
473*5dd36a3bSchristos          <td>(</td>
474*5dd36a3bSchristos          <td class="paramtype"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
475*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
476*5dd36a3bSchristos          <td></td>
477*5dd36a3bSchristos        </tr>
478*5dd36a3bSchristos      </table>
479*5dd36a3bSchristos</div><div class="memdoc">
480*5dd36a3bSchristos
481*5dd36a3bSchristos<p>Decreases the reference count by one, deallocating the item if needed. </p>
482*5dd36a3bSchristos<p>Convenience wrapper for <a class="el" href="common_8h.html#aa10ebec46eddc9312ec46a0898b5d196" title="Decreases the reference count by one, deallocating the item if needed. ">cbor_decref</a> when its set-to-null behavior is not needed</p>
483*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
484*5dd36a3bSchristos  <table class="params">
485*5dd36a3bSchristos    <tr><td class="paramname">item[take]</td><td>the item </td></tr>
486*5dd36a3bSchristos  </table>
487*5dd36a3bSchristos  </dd>
488*5dd36a3bSchristos</dl>
489*5dd36a3bSchristos
490*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00174">174</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
491*5dd36a3bSchristos
492*5dd36a3bSchristos</div>
493*5dd36a3bSchristos</div>
494*5dd36a3bSchristos<a id="a5618a3689e31829f4f84da008e20798e"></a>
495*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a5618a3689e31829f4f84da008e20798e">&sect;&nbsp;</a></span>cbor_is_bool()</h2>
496*5dd36a3bSchristos
497*5dd36a3bSchristos<div class="memitem">
498*5dd36a3bSchristos<div class="memproto">
499*5dd36a3bSchristos      <table class="memname">
500*5dd36a3bSchristos        <tr>
501*5dd36a3bSchristos          <td class="memname">bool cbor_is_bool </td>
502*5dd36a3bSchristos          <td>(</td>
503*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
504*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
505*5dd36a3bSchristos          <td></td>
506*5dd36a3bSchristos        </tr>
507*5dd36a3bSchristos      </table>
508*5dd36a3bSchristos</div><div class="memdoc">
509*5dd36a3bSchristos
510*5dd36a3bSchristos<p>Is the item an a boolean? </p>
511*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
512*5dd36a3bSchristos  <table class="params">
513*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
514*5dd36a3bSchristos  </table>
515*5dd36a3bSchristos  </dd>
516*5dd36a3bSchristos</dl>
517*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item a boolean? </dd></dl>
518*5dd36a3bSchristos
519*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00071">71</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
520*5dd36a3bSchristos
521*5dd36a3bSchristos</div>
522*5dd36a3bSchristos</div>
523*5dd36a3bSchristos<a id="a4dde28c548375aa954f1cad15b3739aa"></a>
524*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a4dde28c548375aa954f1cad15b3739aa">&sect;&nbsp;</a></span>cbor_is_float()</h2>
525*5dd36a3bSchristos
526*5dd36a3bSchristos<div class="memitem">
527*5dd36a3bSchristos<div class="memproto">
528*5dd36a3bSchristos      <table class="memname">
529*5dd36a3bSchristos        <tr>
530*5dd36a3bSchristos          <td class="memname">bool cbor_is_float </td>
531*5dd36a3bSchristos          <td>(</td>
532*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
533*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
534*5dd36a3bSchristos          <td></td>
535*5dd36a3bSchristos        </tr>
536*5dd36a3bSchristos      </table>
537*5dd36a3bSchristos</div><div class="memdoc">
538*5dd36a3bSchristos
539*5dd36a3bSchristos<p>Is the item an a floating point number? </p>
540*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
541*5dd36a3bSchristos  <table class="params">
542*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
543*5dd36a3bSchristos  </table>
544*5dd36a3bSchristos  </dd>
545*5dd36a3bSchristos</dl>
546*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item a floating point number? </dd></dl>
547*5dd36a3bSchristos
548*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00087">87</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
549*5dd36a3bSchristos
550*5dd36a3bSchristos</div>
551*5dd36a3bSchristos</div>
552*5dd36a3bSchristos<a id="a4e705f34221ba434756a4a1f8e3325e6"></a>
553*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a4e705f34221ba434756a4a1f8e3325e6">&sect;&nbsp;</a></span>cbor_is_int()</h2>
554*5dd36a3bSchristos
555*5dd36a3bSchristos<div class="memitem">
556*5dd36a3bSchristos<div class="memproto">
557*5dd36a3bSchristos      <table class="memname">
558*5dd36a3bSchristos        <tr>
559*5dd36a3bSchristos          <td class="memname">bool cbor_is_int </td>
560*5dd36a3bSchristos          <td>(</td>
561*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
562*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
563*5dd36a3bSchristos          <td></td>
564*5dd36a3bSchristos        </tr>
565*5dd36a3bSchristos      </table>
566*5dd36a3bSchristos</div><div class="memdoc">
567*5dd36a3bSchristos
568*5dd36a3bSchristos<p>Is the item an integer, either positive or negative? </p>
569*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
570*5dd36a3bSchristos  <table class="params">
571*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
572*5dd36a3bSchristos  </table>
573*5dd36a3bSchristos  </dd>
574*5dd36a3bSchristos</dl>
575*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item an integer, either positive or negative? </dd></dl>
576*5dd36a3bSchristos
577*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00065">65</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
578*5dd36a3bSchristos
579*5dd36a3bSchristos</div>
580*5dd36a3bSchristos</div>
581*5dd36a3bSchristos<a id="ad1f5efac647b4d9c437c4441d1177e01"></a>
582*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ad1f5efac647b4d9c437c4441d1177e01">&sect;&nbsp;</a></span>cbor_is_null()</h2>
583*5dd36a3bSchristos
584*5dd36a3bSchristos<div class="memitem">
585*5dd36a3bSchristos<div class="memproto">
586*5dd36a3bSchristos      <table class="memname">
587*5dd36a3bSchristos        <tr>
588*5dd36a3bSchristos          <td class="memname">bool cbor_is_null </td>
589*5dd36a3bSchristos          <td>(</td>
590*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
591*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
592*5dd36a3bSchristos          <td></td>
593*5dd36a3bSchristos        </tr>
594*5dd36a3bSchristos      </table>
595*5dd36a3bSchristos</div><div class="memdoc">
596*5dd36a3bSchristos
597*5dd36a3bSchristos<p>Does this item represent <code>null</code> </p>
598*5dd36a3bSchristos<pre class="fragment">embed:rst:leading-asterisk
599*5dd36a3bSchristos* .. warning:: This is in no way related to the value of the pointer. Passing a null pointer will most likely result in a crash.
600*5dd36a3bSchristos* </pre> <dl class="params"><dt>Parameters</dt><dd>
601*5dd36a3bSchristos  <table class="params">
602*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
603*5dd36a3bSchristos  </table>
604*5dd36a3bSchristos  </dd>
605*5dd36a3bSchristos</dl>
606*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item (CBOR logical) null? </dd></dl>
607*5dd36a3bSchristos
608*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00077">77</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
609*5dd36a3bSchristos
610*5dd36a3bSchristos</div>
611*5dd36a3bSchristos</div>
612*5dd36a3bSchristos<a id="afb7eb76a2953224c96d194640f3092e3"></a>
613*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#afb7eb76a2953224c96d194640f3092e3">&sect;&nbsp;</a></span>cbor_is_undef()</h2>
614*5dd36a3bSchristos
615*5dd36a3bSchristos<div class="memitem">
616*5dd36a3bSchristos<div class="memproto">
617*5dd36a3bSchristos      <table class="memname">
618*5dd36a3bSchristos        <tr>
619*5dd36a3bSchristos          <td class="memname">bool cbor_is_undef </td>
620*5dd36a3bSchristos          <td>(</td>
621*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
622*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
623*5dd36a3bSchristos          <td></td>
624*5dd36a3bSchristos        </tr>
625*5dd36a3bSchristos      </table>
626*5dd36a3bSchristos</div><div class="memdoc">
627*5dd36a3bSchristos
628*5dd36a3bSchristos<p>Does this item represent <code>undefined</code> </p>
629*5dd36a3bSchristos<pre class="fragment">embed:rst:leading-asterisk
630*5dd36a3bSchristos* .. warning:: Care must be taken to distinguish nulls and undefined values in C.
631*5dd36a3bSchristos* </pre> <dl class="params"><dt>Parameters</dt><dd>
632*5dd36a3bSchristos  <table class="params">
633*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
634*5dd36a3bSchristos  </table>
635*5dd36a3bSchristos  </dd>
636*5dd36a3bSchristos</dl>
637*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item (CBOR logical) undefined? </dd></dl>
638*5dd36a3bSchristos
639*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00082">82</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
640*5dd36a3bSchristos
641*5dd36a3bSchristos</div>
642*5dd36a3bSchristos</div>
643*5dd36a3bSchristos<a id="a9ed0fa96105c211867c5032f2a5a8b20"></a>
644*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a9ed0fa96105c211867c5032f2a5a8b20">&sect;&nbsp;</a></span>cbor_isa_array()</h2>
645*5dd36a3bSchristos
646*5dd36a3bSchristos<div class="memitem">
647*5dd36a3bSchristos<div class="memproto">
648*5dd36a3bSchristos      <table class="memname">
649*5dd36a3bSchristos        <tr>
650*5dd36a3bSchristos          <td class="memname">bool cbor_isa_array </td>
651*5dd36a3bSchristos          <td>(</td>
652*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
653*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
654*5dd36a3bSchristos          <td></td>
655*5dd36a3bSchristos        </tr>
656*5dd36a3bSchristos      </table>
657*5dd36a3bSchristos</div><div class="memdoc">
658*5dd36a3bSchristos
659*5dd36a3bSchristos<p>Does the item have the appropriate major type? </p>
660*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
661*5dd36a3bSchristos  <table class="params">
662*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
663*5dd36a3bSchristos  </table>
664*5dd36a3bSchristos  </dd>
665*5dd36a3bSchristos</dl>
666*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item an <a class="el" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6ae48b04b3538ade49d7eae9ee6b656103" title="4 - arrays ">CBOR_TYPE_ARRAY</a>? </dd></dl>
667*5dd36a3bSchristos
668*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00038">38</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
669*5dd36a3bSchristos
670*5dd36a3bSchristos</div>
671*5dd36a3bSchristos</div>
672*5dd36a3bSchristos<a id="adedaf37527b8d8261e287a0001e5a190"></a>
673*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#adedaf37527b8d8261e287a0001e5a190">&sect;&nbsp;</a></span>cbor_isa_bytestring()</h2>
674*5dd36a3bSchristos
675*5dd36a3bSchristos<div class="memitem">
676*5dd36a3bSchristos<div class="memproto">
677*5dd36a3bSchristos      <table class="memname">
678*5dd36a3bSchristos        <tr>
679*5dd36a3bSchristos          <td class="memname">bool cbor_isa_bytestring </td>
680*5dd36a3bSchristos          <td>(</td>
681*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
682*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
683*5dd36a3bSchristos          <td></td>
684*5dd36a3bSchristos        </tr>
685*5dd36a3bSchristos      </table>
686*5dd36a3bSchristos</div><div class="memdoc">
687*5dd36a3bSchristos
688*5dd36a3bSchristos<p>Does the item have the appropriate major type? </p>
689*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
690*5dd36a3bSchristos  <table class="params">
691*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
692*5dd36a3bSchristos  </table>
693*5dd36a3bSchristos  </dd>
694*5dd36a3bSchristos</dl>
695*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item a <a class="el" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6a70b9f0b5958c8d51f15ad7bb7c4af01d" title="2 - byte strings ">CBOR_TYPE_BYTESTRING</a>? </dd></dl>
696*5dd36a3bSchristos
697*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00028">28</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
698*5dd36a3bSchristos
699*5dd36a3bSchristos</div>
700*5dd36a3bSchristos</div>
701*5dd36a3bSchristos<a id="a983dec76e934c49ed6979226f9db4386"></a>
702*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a983dec76e934c49ed6979226f9db4386">&sect;&nbsp;</a></span>cbor_isa_float_ctrl()</h2>
703*5dd36a3bSchristos
704*5dd36a3bSchristos<div class="memitem">
705*5dd36a3bSchristos<div class="memproto">
706*5dd36a3bSchristos      <table class="memname">
707*5dd36a3bSchristos        <tr>
708*5dd36a3bSchristos          <td class="memname">bool cbor_isa_float_ctrl </td>
709*5dd36a3bSchristos          <td>(</td>
710*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
711*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
712*5dd36a3bSchristos          <td></td>
713*5dd36a3bSchristos        </tr>
714*5dd36a3bSchristos      </table>
715*5dd36a3bSchristos</div><div class="memdoc">
716*5dd36a3bSchristos
717*5dd36a3bSchristos<p>Does the item have the appropriate major type? </p>
718*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
719*5dd36a3bSchristos  <table class="params">
720*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
721*5dd36a3bSchristos  </table>
722*5dd36a3bSchristos  </dd>
723*5dd36a3bSchristos</dl>
724*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item a <a class="el" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6a1276dcc4ac56df5fd7e0270344a6e57d" title="7 - decimals and special values (true, false, nil, ...) ">CBOR_TYPE_FLOAT_CTRL</a>? </dd></dl>
725*5dd36a3bSchristos
726*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00053">53</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
727*5dd36a3bSchristos
728*5dd36a3bSchristos</div>
729*5dd36a3bSchristos</div>
730*5dd36a3bSchristos<a id="af0de041481b61922d0995b63f82d8ddd"></a>
731*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#af0de041481b61922d0995b63f82d8ddd">&sect;&nbsp;</a></span>cbor_isa_map()</h2>
732*5dd36a3bSchristos
733*5dd36a3bSchristos<div class="memitem">
734*5dd36a3bSchristos<div class="memproto">
735*5dd36a3bSchristos      <table class="memname">
736*5dd36a3bSchristos        <tr>
737*5dd36a3bSchristos          <td class="memname">bool cbor_isa_map </td>
738*5dd36a3bSchristos          <td>(</td>
739*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
740*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
741*5dd36a3bSchristos          <td></td>
742*5dd36a3bSchristos        </tr>
743*5dd36a3bSchristos      </table>
744*5dd36a3bSchristos</div><div class="memdoc">
745*5dd36a3bSchristos
746*5dd36a3bSchristos<p>Does the item have the appropriate major type? </p>
747*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
748*5dd36a3bSchristos  <table class="params">
749*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
750*5dd36a3bSchristos  </table>
751*5dd36a3bSchristos  </dd>
752*5dd36a3bSchristos</dl>
753*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item a <a class="el" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6a057fc3133cb4465f9eb734acfd195db2" title="5 - maps ">CBOR_TYPE_MAP</a>? </dd></dl>
754*5dd36a3bSchristos
755*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00043">43</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
756*5dd36a3bSchristos
757*5dd36a3bSchristos</div>
758*5dd36a3bSchristos</div>
759*5dd36a3bSchristos<a id="a0ca5042e3807d2cc9c3d40f9266460dd"></a>
760*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a0ca5042e3807d2cc9c3d40f9266460dd">&sect;&nbsp;</a></span>cbor_isa_negint()</h2>
761*5dd36a3bSchristos
762*5dd36a3bSchristos<div class="memitem">
763*5dd36a3bSchristos<div class="memproto">
764*5dd36a3bSchristos      <table class="memname">
765*5dd36a3bSchristos        <tr>
766*5dd36a3bSchristos          <td class="memname">bool cbor_isa_negint </td>
767*5dd36a3bSchristos          <td>(</td>
768*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
769*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
770*5dd36a3bSchristos          <td></td>
771*5dd36a3bSchristos        </tr>
772*5dd36a3bSchristos      </table>
773*5dd36a3bSchristos</div><div class="memdoc">
774*5dd36a3bSchristos
775*5dd36a3bSchristos<p>Does the item have the appropriate major type? </p>
776*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
777*5dd36a3bSchristos  <table class="params">
778*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
779*5dd36a3bSchristos  </table>
780*5dd36a3bSchristos  </dd>
781*5dd36a3bSchristos</dl>
782*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item a <a class="el" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6ae140516103af792c8f2af84390acfdcd" title="1 - negative integers ">CBOR_TYPE_NEGINT</a>? </dd></dl>
783*5dd36a3bSchristos
784*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00023">23</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
785*5dd36a3bSchristos
786*5dd36a3bSchristos</div>
787*5dd36a3bSchristos</div>
788*5dd36a3bSchristos<a id="a02edd93bb8eab83bc2b8f8bf5d7d1335"></a>
789*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a02edd93bb8eab83bc2b8f8bf5d7d1335">&sect;&nbsp;</a></span>cbor_isa_string()</h2>
790*5dd36a3bSchristos
791*5dd36a3bSchristos<div class="memitem">
792*5dd36a3bSchristos<div class="memproto">
793*5dd36a3bSchristos      <table class="memname">
794*5dd36a3bSchristos        <tr>
795*5dd36a3bSchristos          <td class="memname">bool cbor_isa_string </td>
796*5dd36a3bSchristos          <td>(</td>
797*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
798*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
799*5dd36a3bSchristos          <td></td>
800*5dd36a3bSchristos        </tr>
801*5dd36a3bSchristos      </table>
802*5dd36a3bSchristos</div><div class="memdoc">
803*5dd36a3bSchristos
804*5dd36a3bSchristos<p>Does the item have the appropriate major type? </p>
805*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
806*5dd36a3bSchristos  <table class="params">
807*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
808*5dd36a3bSchristos  </table>
809*5dd36a3bSchristos  </dd>
810*5dd36a3bSchristos</dl>
811*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item a <a class="el" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6ae05102a66420250eacd5f17b95d04443" title="3 - strings ">CBOR_TYPE_STRING</a>? </dd></dl>
812*5dd36a3bSchristos
813*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00033">33</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
814*5dd36a3bSchristos
815*5dd36a3bSchristos</div>
816*5dd36a3bSchristos</div>
817*5dd36a3bSchristos<a id="a0d5054202c5ec9375e8daf5930087a61"></a>
818*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a0d5054202c5ec9375e8daf5930087a61">&sect;&nbsp;</a></span>cbor_isa_tag()</h2>
819*5dd36a3bSchristos
820*5dd36a3bSchristos<div class="memitem">
821*5dd36a3bSchristos<div class="memproto">
822*5dd36a3bSchristos      <table class="memname">
823*5dd36a3bSchristos        <tr>
824*5dd36a3bSchristos          <td class="memname">bool cbor_isa_tag </td>
825*5dd36a3bSchristos          <td>(</td>
826*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
827*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
828*5dd36a3bSchristos          <td></td>
829*5dd36a3bSchristos        </tr>
830*5dd36a3bSchristos      </table>
831*5dd36a3bSchristos</div><div class="memdoc">
832*5dd36a3bSchristos
833*5dd36a3bSchristos<p>Does the item have the appropriate major type? </p>
834*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
835*5dd36a3bSchristos  <table class="params">
836*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
837*5dd36a3bSchristos  </table>
838*5dd36a3bSchristos  </dd>
839*5dd36a3bSchristos</dl>
840*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item a <a class="el" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6a16f0eaf29eeea66fe37ec1ed0fa45415" title="6 - tags ">CBOR_TYPE_TAG</a>? </dd></dl>
841*5dd36a3bSchristos
842*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00048">48</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
843*5dd36a3bSchristos
844*5dd36a3bSchristos</div>
845*5dd36a3bSchristos</div>
846*5dd36a3bSchristos<a id="a682a023f7012a5b66a57847e6f8d386f"></a>
847*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a682a023f7012a5b66a57847e6f8d386f">&sect;&nbsp;</a></span>cbor_isa_uint()</h2>
848*5dd36a3bSchristos
849*5dd36a3bSchristos<div class="memitem">
850*5dd36a3bSchristos<div class="memproto">
851*5dd36a3bSchristos      <table class="memname">
852*5dd36a3bSchristos        <tr>
853*5dd36a3bSchristos          <td class="memname">bool cbor_isa_uint </td>
854*5dd36a3bSchristos          <td>(</td>
855*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
856*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
857*5dd36a3bSchristos          <td></td>
858*5dd36a3bSchristos        </tr>
859*5dd36a3bSchristos      </table>
860*5dd36a3bSchristos</div><div class="memdoc">
861*5dd36a3bSchristos
862*5dd36a3bSchristos<p>Does the item have the appropriate major type? </p>
863*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
864*5dd36a3bSchristos  <table class="params">
865*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
866*5dd36a3bSchristos  </table>
867*5dd36a3bSchristos  </dd>
868*5dd36a3bSchristos</dl>
869*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>Is the item an <a class="el" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6a2137d55d8028e37ff4319a633ef0634f" title="0 - positive integers ">CBOR_TYPE_UINT</a>? </dd></dl>
870*5dd36a3bSchristos
871*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00018">18</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
872*5dd36a3bSchristos
873*5dd36a3bSchristos</div>
874*5dd36a3bSchristos</div>
875*5dd36a3bSchristos<a id="a327dce45c1cb680953555290dba8e35b"></a>
876*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a327dce45c1cb680953555290dba8e35b">&sect;&nbsp;</a></span>cbor_move()</h2>
877*5dd36a3bSchristos
878*5dd36a3bSchristos<div class="memitem">
879*5dd36a3bSchristos<div class="memproto">
880*5dd36a3bSchristos      <table class="memname">
881*5dd36a3bSchristos        <tr>
882*5dd36a3bSchristos          <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_move </td>
883*5dd36a3bSchristos          <td>(</td>
884*5dd36a3bSchristos          <td class="paramtype"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
885*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
886*5dd36a3bSchristos          <td></td>
887*5dd36a3bSchristos        </tr>
888*5dd36a3bSchristos      </table>
889*5dd36a3bSchristos</div><div class="memdoc">
890*5dd36a3bSchristos
891*5dd36a3bSchristos<p>Provides CPP-like move construct. </p>
892*5dd36a3bSchristos<p>Decreases the reference count by one, but does not deallocate the item even if its refcount reaches zero. This is useful for passing intermediate values to functions that increase reference count. Should only be used with functions that <code>incref</code> their arguments.</p>
893*5dd36a3bSchristos<pre class="fragment">embed:rst:leading-asterisk
894*5dd36a3bSchristos* .. warning:: If the item is moved without correctly increasing the reference count afterwards, the memory will be leaked.
895*5dd36a3bSchristos* </pre><dl class="params"><dt>Parameters</dt><dd>
896*5dd36a3bSchristos  <table class="params">
897*5dd36a3bSchristos    <tr><td class="paramname">item[take]</td><td>the item </td></tr>
898*5dd36a3bSchristos  </table>
899*5dd36a3bSchristos  </dd>
900*5dd36a3bSchristos</dl>
901*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>the item with reference count decreased by one </dd></dl>
902*5dd36a3bSchristos
903*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00184">184</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
904*5dd36a3bSchristos
905*5dd36a3bSchristos</div>
906*5dd36a3bSchristos</div>
907*5dd36a3bSchristos<a id="ab27dda20ad909cebaee1b2f43e676f2c"></a>
908*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ab27dda20ad909cebaee1b2f43e676f2c">&sect;&nbsp;</a></span>cbor_refcount()</h2>
909*5dd36a3bSchristos
910*5dd36a3bSchristos<div class="memitem">
911*5dd36a3bSchristos<div class="memproto">
912*5dd36a3bSchristos      <table class="memname">
913*5dd36a3bSchristos        <tr>
914*5dd36a3bSchristos          <td class="memname">size_t cbor_refcount </td>
915*5dd36a3bSchristos          <td>(</td>
916*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
917*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
918*5dd36a3bSchristos          <td></td>
919*5dd36a3bSchristos        </tr>
920*5dd36a3bSchristos      </table>
921*5dd36a3bSchristos</div><div class="memdoc">
922*5dd36a3bSchristos
923*5dd36a3bSchristos<p>Get the reference count. </p>
924*5dd36a3bSchristos<pre class="fragment">embed:rst:leading-asterisk
925*5dd36a3bSchristos* .. warning:: This does *not* account for transitive references.
926*5dd36a3bSchristos* </pre><dl class="params"><dt>Parameters</dt><dd>
927*5dd36a3bSchristos  <table class="params">
928*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td>the item </td></tr>
929*5dd36a3bSchristos  </table>
930*5dd36a3bSchristos  </dd>
931*5dd36a3bSchristos</dl>
932*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>the reference count </dd></dl>
933*5dd36a3bSchristos
934*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00179">179</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
935*5dd36a3bSchristos
936*5dd36a3bSchristos</div>
937*5dd36a3bSchristos</div>
938*5dd36a3bSchristos<a id="a3f9f1d527374dbb4b48ef3fafa92e0bf"></a>
939*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a3f9f1d527374dbb4b48ef3fafa92e0bf">&sect;&nbsp;</a></span>cbor_set_allocs()</h2>
940*5dd36a3bSchristos
941*5dd36a3bSchristos<div class="memitem">
942*5dd36a3bSchristos<div class="memproto">
943*5dd36a3bSchristos      <table class="memname">
944*5dd36a3bSchristos        <tr>
945*5dd36a3bSchristos          <td class="memname">void cbor_set_allocs </td>
946*5dd36a3bSchristos          <td>(</td>
947*5dd36a3bSchristos          <td class="paramtype"><a class="el" href="common_8h.html#ad89d15c2e3f18e8914fcdffe4d725d42">_cbor_malloc_t</a>&#160;</td>
948*5dd36a3bSchristos          <td class="paramname"><em>custom_malloc</em>, </td>
949*5dd36a3bSchristos        </tr>
950*5dd36a3bSchristos        <tr>
951*5dd36a3bSchristos          <td class="paramkey"></td>
952*5dd36a3bSchristos          <td></td>
953*5dd36a3bSchristos          <td class="paramtype"><a class="el" href="common_8h.html#a5b52369a95930104d33301d12faabe75">_cbor_realloc_t</a>&#160;</td>
954*5dd36a3bSchristos          <td class="paramname"><em>custom_realloc</em>, </td>
955*5dd36a3bSchristos        </tr>
956*5dd36a3bSchristos        <tr>
957*5dd36a3bSchristos          <td class="paramkey"></td>
958*5dd36a3bSchristos          <td></td>
959*5dd36a3bSchristos          <td class="paramtype"><a class="el" href="common_8h.html#af05bb33f6d22cdac535576c8edaf208c">_cbor_free_t</a>&#160;</td>
960*5dd36a3bSchristos          <td class="paramname"><em>custom_free</em>&#160;</td>
961*5dd36a3bSchristos        </tr>
962*5dd36a3bSchristos        <tr>
963*5dd36a3bSchristos          <td></td>
964*5dd36a3bSchristos          <td>)</td>
965*5dd36a3bSchristos          <td></td><td></td>
966*5dd36a3bSchristos        </tr>
967*5dd36a3bSchristos      </table>
968*5dd36a3bSchristos</div><div class="memdoc">
969*5dd36a3bSchristos
970*5dd36a3bSchristos<p>Sets the memory management routines to use. </p>
971*5dd36a3bSchristos<p>Only available when CBOR_CUSTOM_ALLOC is truthy</p>
972*5dd36a3bSchristos<pre class="fragment">embed:rst:leading-asterisk
973*5dd36a3bSchristos* .. warning:: This function modifies the global state and should therefore be used accordingly. Changing the memory handlers while allocated items exist will result in a ``free``/``malloc`` mismatch. This function is not thread safe with respect to both itself and all the other *libcbor* functions that work with the heap.
974*5dd36a3bSchristos* .. note:: `realloc` implementation must correctly support `NULL` reallocation
975*5dd36a3bSchristos* </pre><dl class="params"><dt>Parameters</dt><dd>
976*5dd36a3bSchristos  <table class="params">
977*5dd36a3bSchristos    <tr><td class="paramname">custom_malloc</td><td>malloc implementation </td></tr>
978*5dd36a3bSchristos    <tr><td class="paramname">custom_realloc</td><td>realloc implementation </td></tr>
979*5dd36a3bSchristos    <tr><td class="paramname">custom_free</td><td>free implementation </td></tr>
980*5dd36a3bSchristos  </table>
981*5dd36a3bSchristos  </dd>
982*5dd36a3bSchristos</dl>
983*5dd36a3bSchristos
984*5dd36a3bSchristos<p>Definition at line <a class="el" href="allocators_8c_source.html#l00014">14</a> of file <a class="el" href="allocators_8c_source.html">allocators.c</a>.</p>
985*5dd36a3bSchristos
986*5dd36a3bSchristos</div>
987*5dd36a3bSchristos</div>
988*5dd36a3bSchristos<a id="ac2b9aba4cf07857524a0a520eabeef52"></a>
989*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ac2b9aba4cf07857524a0a520eabeef52">&sect;&nbsp;</a></span>cbor_typeof()</h2>
990*5dd36a3bSchristos
991*5dd36a3bSchristos<div class="memitem">
992*5dd36a3bSchristos<div class="memproto">
993*5dd36a3bSchristos      <table class="memname">
994*5dd36a3bSchristos        <tr>
995*5dd36a3bSchristos          <td class="memname"><a class="el" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6">cbor_type</a> cbor_typeof </td>
996*5dd36a3bSchristos          <td>(</td>
997*5dd36a3bSchristos          <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *&#160;</td>
998*5dd36a3bSchristos          <td class="paramname"><em>item</em></td><td>)</td>
999*5dd36a3bSchristos          <td></td>
1000*5dd36a3bSchristos        </tr>
1001*5dd36a3bSchristos      </table>
1002*5dd36a3bSchristos</div><div class="memdoc">
1003*5dd36a3bSchristos
1004*5dd36a3bSchristos<p>Get the type of the item. </p>
1005*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd>
1006*5dd36a3bSchristos  <table class="params">
1007*5dd36a3bSchristos    <tr><td class="paramname">item[borrow]</td><td></td></tr>
1008*5dd36a3bSchristos  </table>
1009*5dd36a3bSchristos  </dd>
1010*5dd36a3bSchristos</dl>
1011*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>The type </dd></dl>
1012*5dd36a3bSchristos
1013*5dd36a3bSchristos<p>Definition at line <a class="el" href="common_8c_source.html#l00059">59</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p>
1014*5dd36a3bSchristos
1015*5dd36a3bSchristos</div>
1016*5dd36a3bSchristos</div>
1017*5dd36a3bSchristos<h2 class="groupheader">Variable Documentation</h2>
1018*5dd36a3bSchristos<a id="a994f4145360ef0bfa3c48e59a5ca7186"></a>
1019*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a994f4145360ef0bfa3c48e59a5ca7186">&sect;&nbsp;</a></span>_cbor_free</h2>
1020*5dd36a3bSchristos
1021*5dd36a3bSchristos<div class="memitem">
1022*5dd36a3bSchristos<div class="memproto">
1023*5dd36a3bSchristos      <table class="memname">
1024*5dd36a3bSchristos        <tr>
1025*5dd36a3bSchristos          <td class="memname"><a class="el" href="common_8h.html#af05bb33f6d22cdac535576c8edaf208c">_cbor_free_t</a> _cbor_free</td>
1026*5dd36a3bSchristos        </tr>
1027*5dd36a3bSchristos      </table>
1028*5dd36a3bSchristos</div><div class="memdoc">
1029*5dd36a3bSchristos
1030*5dd36a3bSchristos<p>Definition at line <a class="el" href="allocators_8c_source.html#l00012">12</a> of file <a class="el" href="allocators_8c_source.html">allocators.c</a>.</p>
1031*5dd36a3bSchristos
1032*5dd36a3bSchristos</div>
1033*5dd36a3bSchristos</div>
1034*5dd36a3bSchristos<a id="a3218c24af00a3efeaecb1716c8f5a289"></a>
1035*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a3218c24af00a3efeaecb1716c8f5a289">&sect;&nbsp;</a></span>_cbor_malloc</h2>
1036*5dd36a3bSchristos
1037*5dd36a3bSchristos<div class="memitem">
1038*5dd36a3bSchristos<div class="memproto">
1039*5dd36a3bSchristos      <table class="memname">
1040*5dd36a3bSchristos        <tr>
1041*5dd36a3bSchristos          <td class="memname"><a class="el" href="common_8h.html#ad89d15c2e3f18e8914fcdffe4d725d42">_cbor_malloc_t</a> _cbor_malloc</td>
1042*5dd36a3bSchristos        </tr>
1043*5dd36a3bSchristos      </table>
1044*5dd36a3bSchristos</div><div class="memdoc">
1045*5dd36a3bSchristos
1046*5dd36a3bSchristos<p>Definition at line <a class="el" href="allocators_8c_source.html#l00010">10</a> of file <a class="el" href="allocators_8c_source.html">allocators.c</a>.</p>
1047*5dd36a3bSchristos
1048*5dd36a3bSchristos</div>
1049*5dd36a3bSchristos</div>
1050*5dd36a3bSchristos<a id="a84ecc1fc92c3812ab6ced693f2c6254c"></a>
1051*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a84ecc1fc92c3812ab6ced693f2c6254c">&sect;&nbsp;</a></span>_cbor_realloc</h2>
1052*5dd36a3bSchristos
1053*5dd36a3bSchristos<div class="memitem">
1054*5dd36a3bSchristos<div class="memproto">
1055*5dd36a3bSchristos      <table class="memname">
1056*5dd36a3bSchristos        <tr>
1057*5dd36a3bSchristos          <td class="memname"><a class="el" href="common_8h.html#a5b52369a95930104d33301d12faabe75">_cbor_realloc_t</a> _cbor_realloc</td>
1058*5dd36a3bSchristos        </tr>
1059*5dd36a3bSchristos      </table>
1060*5dd36a3bSchristos</div><div class="memdoc">
1061*5dd36a3bSchristos
1062*5dd36a3bSchristos<p>Definition at line <a class="el" href="allocators_8c_source.html#l00011">11</a> of file <a class="el" href="allocators_8c_source.html">allocators.c</a>.</p>
1063*5dd36a3bSchristos
1064*5dd36a3bSchristos</div>
1065*5dd36a3bSchristos</div>
1066*5dd36a3bSchristos</div><!-- contents -->
1067*5dd36a3bSchristos<!-- start footer part -->
1068*5dd36a3bSchristos<hr class="footer"/><address class="footer"><small>
1069*5dd36a3bSchristosGenerated on Mon Feb 6 2017 00:26:19 for libcbor by &#160;<a href="http://www.doxygen.org/index.html">
1070*5dd36a3bSchristos<img class="footer" src="doxygen.png" alt="doxygen"/>
1071*5dd36a3bSchristos</a> 1.8.12
1072*5dd36a3bSchristos</small></address>
1073*5dd36a3bSchristos</body>
1074*5dd36a3bSchristos</html>
1075