<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcbor: src/cbor/ints.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">libcbor
 <span id="projectnumber">0.5.0</span>
</div>
<div id="projectbrief">libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<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>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">ints.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="ints_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2014-2017 Pavel Kalvoda <me@pavelkalvoda.com></span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * libcbor is free software; you can redistribute it and/or modify</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * it under the terms of the MIT license. See LICENSE for details.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> */</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#ifndef LIBCBOR_INTS_H</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#define LIBCBOR_INTS_H</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="common_8h.html">cbor/common.h</a>"</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">/*</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">* ============================================================================</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">* Integer (uints and negints) manipulation</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">* ============================================================================</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">*/</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> uint8_t <a class="code" href="ints_8h.html#a2379bf36318e8e4faa7434c74d8553fb">cbor_get_uint8</a>(<span class="keyword">const</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item);</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> uint16_t <a class="code" href="ints_8h.html#a06a0997aed16fe6aa540f57bf40ce400">cbor_get_uint16</a>(<span class="keyword">const</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> uint32_t <a class="code" href="ints_8h.html#a0480e5b5849b757aa9416a4c1d51b36d">cbor_get_uint32</a>(<span class="keyword">const</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> uint64_t <a class="code" href="ints_8h.html#a839ec2dc97dda1db54657cec50387a12">cbor_get_uint64</a>(<span class="keyword">const</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> uint64_t <a class="code" href="ints_8h.html#aacf93e9a8a2c4217d5cd84207b957cba">cbor_get_int</a>(<span class="keyword">const</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="keywordtype">void</span> <a class="code" href="ints_8h.html#a62e9cd557438c1a5b8cf9a29c1f64baa">cbor_set_uint8</a>(<a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item, uint8_t value);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keywordtype">void</span> <a class="code" href="ints_8h.html#a13b3dff419830b59c77ee18d4c03f6eb">cbor_set_uint16</a>(<a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item, uint16_t value);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="keywordtype">void</span> <a class="code" href="ints_8h.html#a2db697fb733dcbdbbef8714fd182a185">cbor_set_uint32</a>(<a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item, uint32_t value);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keywordtype">void</span> <a class="code" href="ints_8h.html#af82a3961109f2a36324157e218680016">cbor_set_uint64</a>(<a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item, uint64_t value);</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <a class="code" href="data_8h.html#ae0fc9740f108f0f0078b93712b061e57">cbor_int_width</a> <a class="code" href="ints_8h.html#a30bcfb58aa41d4c44bc2d5d6b7de105d">cbor_int_get_width</a>(<span class="keyword">const</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="keywordtype">void</span> <a class="code" href="ints_8h.html#aed6a5a44245b8447a768c95e351c2c0c">cbor_mark_uint</a>(<a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keywordtype">void</span> <a class="code" href="ints_8h.html#a6ef24d3e2636c02de092fdfc337276b1">cbor_mark_negint</a>(<a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#ae4562e1314b122ae89712dbf0c48c14c">cbor_new_int8</a>();</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#a68f71f9574e0085f02a27bd0f58d4b55">cbor_new_int16</a>();</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#a9cf9db24315a0e622746a546cc112467">cbor_new_int32</a>();</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#ab863f47b9de930c5d014e0dbb5523d9d">cbor_new_int64</a>();</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#ad4d9f92f14c640544386e6655283052d">cbor_build_uint8</a>(uint8_t value);</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#a88f05c625ad9fa182bc95c9c97f87dda">cbor_build_uint16</a>(uint16_t value);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#afcefa3190eeeff1e5ed0b5217761ad5a">cbor_build_uint32</a>(uint32_t value);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#adff4351ebc5bb6f69d8a2ea0c9439fc5">cbor_build_uint64</a>(uint64_t value);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#a28553eb079f8778babebf869e33f27a2">cbor_build_negint8</a>(uint8_t value);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#ae40a5af0998889c6550ceb0914b2cd9b">cbor_build_negint16</a>(uint16_t value);</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#a35d8b500ae33d4fc0262de4830382529">cbor_build_negint32</a>(uint32_t value);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *<a class="code" href="ints_8h.html#ae24074614ece5da3024a536093d21678">cbor_build_negint64</a>(uint64_t value);</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> }</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="preprocessor">#endif //LIBCBOR_INTS_H</span></div><div class="ttc" id="ints_8h_html_a9cf9db24315a0e622746a546cc112467"><div class="ttname"><a href="ints_8h.html#a9cf9db24315a0e622746a546cc112467">cbor_new_int32</a></div><div class="ttdeci">cbor_item_t * cbor_new_int32()</div><div class="ttdoc">Allocates new integer with 4B width. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00121">ints.c:121</a></div></div>
<div class="ttc" id="ints_8h_html_aed6a5a44245b8447a768c95e351c2c0c"><div class="ttname"><a href="ints_8h.html#aed6a5a44245b8447a768c95e351c2c0c">cbor_mark_uint</a></div><div class="ttdeci">void cbor_mark_uint(cbor_item_t *item)</div><div class="ttdoc">Marks the integer item as a positive integer. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00085">ints.c:85</a></div></div>
<div class="ttc" id="ints_8h_html_a30bcfb58aa41d4c44bc2d5d6b7de105d"><div class="ttname"><a href="ints_8h.html#a30bcfb58aa41d4c44bc2d5d6b7de105d">cbor_int_get_width</a></div><div class="ttdeci">cbor_int_width cbor_int_get_width(const cbor_item_t *item)</div><div class="ttdoc">Queries the integer width. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00010">ints.c:10</a></div></div>
<div class="ttc" id="ints_8h_html_ae24074614ece5da3024a536093d21678"><div class="ttname"><a href="ints_8h.html#ae24074614ece5da3024a536093d21678">cbor_build_negint64</a></div><div class="ttdeci">cbor_item_t * cbor_build_negint64(uint64_t value)</div><div class="ttdoc">Constructs a new negative integer. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00201">ints.c:201</a></div></div>
<div class="ttc" id="ints_8h_html_ab863f47b9de930c5d014e0dbb5523d9d"><div class="ttname"><a href="ints_8h.html#ab863f47b9de930c5d014e0dbb5523d9d">cbor_new_int64</a></div><div class="ttdeci">cbor_item_t * cbor_new_int64()</div><div class="ttdoc">Allocates new integer with 8B width. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00133">ints.c:133</a></div></div>
<div class="ttc" id="ints_8h_html_ae40a5af0998889c6550ceb0914b2cd9b"><div class="ttname"><a href="ints_8h.html#ae40a5af0998889c6550ceb0914b2cd9b">cbor_build_negint16</a></div><div class="ttdeci">cbor_item_t * cbor_build_negint16(uint16_t value)</div><div class="ttdoc">Constructs a new negative integer. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00185">ints.c:185</a></div></div>
<div class="ttc" id="ints_8h_html_a06a0997aed16fe6aa540f57bf40ce400"><div class="ttname"><a href="ints_8h.html#a06a0997aed16fe6aa540f57bf40ce400">cbor_get_uint16</a></div><div class="ttdeci">uint16_t cbor_get_uint16(const cbor_item_t *item)</div><div class="ttdoc">Extracts the integer value. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00023">ints.c:23</a></div></div>
<div class="ttc" id="ints_8h_html_a35d8b500ae33d4fc0262de4830382529"><div class="ttname"><a href="ints_8h.html#a35d8b500ae33d4fc0262de4830382529">cbor_build_negint32</a></div><div class="ttdeci">cbor_item_t * cbor_build_negint32(uint32_t value)</div><div class="ttdoc">Constructs a new negative integer. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00193">ints.c:193</a></div></div>
<div class="ttc" id="ints_8h_html_a0480e5b5849b757aa9416a4c1d51b36d"><div class="ttname"><a href="ints_8h.html#a0480e5b5849b757aa9416a4c1d51b36d">cbor_get_uint32</a></div><div class="ttdeci">uint32_t cbor_get_uint32(const cbor_item_t *item)</div><div class="ttdoc">Extracts the integer value. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00030">ints.c:30</a></div></div>
<div class="ttc" id="ints_8h_html_aacf93e9a8a2c4217d5cd84207b957cba"><div class="ttname"><a href="ints_8h.html#aacf93e9a8a2c4217d5cd84207b957cba">cbor_get_int</a></div><div class="ttdeci">uint64_t cbor_get_int(const cbor_item_t *item)</div><div class="ttdoc">Extracts the integer value. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00044">ints.c:44</a></div></div>
<div class="ttc" id="ints_8h_html_a6ef24d3e2636c02de092fdfc337276b1"><div class="ttname"><a href="ints_8h.html#a6ef24d3e2636c02de092fdfc337276b1">cbor_mark_negint</a></div><div class="ttdeci">void cbor_mark_negint(cbor_item_t *item)</div><div class="ttdoc">Marks the integer item as a negative integer. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00091">ints.c:91</a></div></div>
<div class="ttc" id="ints_8h_html_a62e9cd557438c1a5b8cf9a29c1f64baa"><div class="ttname"><a href="ints_8h.html#a62e9cd557438c1a5b8cf9a29c1f64baa">cbor_set_uint8</a></div><div class="ttdeci">void cbor_set_uint8(cbor_item_t *item, uint8_t value)</div><div class="ttdoc">Assigns the integer value. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00056">ints.c:56</a></div></div>
<div class="ttc" id="ints_8h_html_adff4351ebc5bb6f69d8a2ea0c9439fc5"><div class="ttname"><a href="ints_8h.html#adff4351ebc5bb6f69d8a2ea0c9439fc5">cbor_build_uint64</a></div><div class="ttdeci">cbor_item_t * cbor_build_uint64(uint64_t value)</div><div class="ttdoc">Constructs a new positive integer. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00169">ints.c:169</a></div></div>
<div class="ttc" id="data_8h_html_ae0fc9740f108f0f0078b93712b061e57"><div class="ttname"><a href="data_8h.html#ae0fc9740f108f0f0078b93712b061e57">cbor_int_width</a></div><div class="ttdeci">cbor_int_width</div><div class="ttdoc">Possible widths of CBOR_TYPE_UINT items. </div><div class="ttdef"><b>Definition:</b> <a href="data_8h_source.html#l00046">data.h:46</a></div></div>
<div class="ttc" id="ints_8h_html_a839ec2dc97dda1db54657cec50387a12"><div class="ttname"><a href="ints_8h.html#a839ec2dc97dda1db54657cec50387a12">cbor_get_uint64</a></div><div class="ttdeci">uint64_t cbor_get_uint64(const cbor_item_t *item)</div><div class="ttdoc">Extracts the integer value. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00037">ints.c:37</a></div></div>
<div class="ttc" id="ints_8h_html_afcefa3190eeeff1e5ed0b5217761ad5a"><div class="ttname"><a href="ints_8h.html#afcefa3190eeeff1e5ed0b5217761ad5a">cbor_build_uint32</a></div><div class="ttdeci">cbor_item_t * cbor_build_uint32(uint32_t value)</div><div class="ttdoc">Constructs a new positive integer. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00161">ints.c:161</a></div></div>
<div class="ttc" id="ints_8h_html_a13b3dff419830b59c77ee18d4c03f6eb"><div class="ttname"><a href="ints_8h.html#a13b3dff419830b59c77ee18d4c03f6eb">cbor_set_uint16</a></div><div class="ttdeci">void cbor_set_uint16(cbor_item_t *item, uint16_t value)</div><div class="ttdoc">Assigns the integer value. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00063">ints.c:63</a></div></div>
<div class="ttc" id="ints_8h_html_a2db697fb733dcbdbbef8714fd182a185"><div class="ttname"><a href="ints_8h.html#a2db697fb733dcbdbbef8714fd182a185">cbor_set_uint32</a></div><div class="ttdeci">void cbor_set_uint32(cbor_item_t *item, uint32_t value)</div><div class="ttdoc">Assigns the integer value. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00071">ints.c:71</a></div></div>
<div class="ttc" id="ints_8h_html_a68f71f9574e0085f02a27bd0f58d4b55"><div class="ttname"><a href="ints_8h.html#a68f71f9574e0085f02a27bd0f58d4b55">cbor_new_int16</a></div><div class="ttdeci">cbor_item_t * cbor_new_int16()</div><div class="ttdoc">Allocates new integer with 2B width. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00109">ints.c:109</a></div></div>
<div class="ttc" id="ints_8h_html_ae4562e1314b122ae89712dbf0c48c14c"><div class="ttname"><a href="ints_8h.html#ae4562e1314b122ae89712dbf0c48c14c">cbor_new_int8</a></div><div class="ttdeci">cbor_item_t * cbor_new_int8()</div><div class="ttdoc">Allocates new integer with 1B width. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00097">ints.c:97</a></div></div>
<div class="ttc" id="ints_8h_html_af82a3961109f2a36324157e218680016"><div class="ttname"><a href="ints_8h.html#af82a3961109f2a36324157e218680016">cbor_set_uint64</a></div><div class="ttdeci">void cbor_set_uint64(cbor_item_t *item, uint64_t value)</div><div class="ttdoc">Assigns the integer value. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00078">ints.c:78</a></div></div>
<div class="ttc" id="ints_8h_html_a88f05c625ad9fa182bc95c9c97f87dda"><div class="ttname"><a href="ints_8h.html#a88f05c625ad9fa182bc95c9c97f87dda">cbor_build_uint16</a></div><div class="ttdeci">cbor_item_t * cbor_build_uint16(uint16_t value)</div><div class="ttdoc">Constructs a new positive integer. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00153">ints.c:153</a></div></div>
<div class="ttc" id="common_8h_html"><div class="ttname"><a href="common_8h.html">common.h</a></div></div>
<div class="ttc" id="structcbor__item__t_html"><div class="ttname"><a href="structcbor__item__t.html">cbor_item_t</a></div><div class="ttdoc">The item handle. </div><div class="ttdef"><b>Definition:</b> <a href="data_8h_source.html#l00149">data.h:149</a></div></div>
<div class="ttc" id="ints_8h_html_a28553eb079f8778babebf869e33f27a2"><div class="ttname"><a href="ints_8h.html#a28553eb079f8778babebf869e33f27a2">cbor_build_negint8</a></div><div class="ttdeci">cbor_item_t * cbor_build_negint8(uint8_t value)</div><div class="ttdoc">Constructs a new negative integer. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00177">ints.c:177</a></div></div>
<div class="ttc" id="ints_8h_html_ad4d9f92f14c640544386e6655283052d"><div class="ttname"><a href="ints_8h.html#ad4d9f92f14c640544386e6655283052d">cbor_build_uint8</a></div><div class="ttdeci">cbor_item_t * cbor_build_uint8(uint8_t value)</div><div class="ttdoc">Constructs a new positive integer. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00145">ints.c:145</a></div></div>
<div class="ttc" id="ints_8h_html_a2379bf36318e8e4faa7434c74d8553fb"><div class="ttname"><a href="ints_8h.html#a2379bf36318e8e4faa7434c74d8553fb">cbor_get_uint8</a></div><div class="ttdeci">uint8_t cbor_get_uint8(const cbor_item_t *item)</div><div class="ttdoc">Extracts the integer value. </div><div class="ttdef"><b>Definition:</b> <a href="ints_8c_source.html#l00016">ints.c:16</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Feb 6 2017 00:26:19 for libcbor by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>