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/ints.c 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  <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="#func-members">Functions</a> </div> 70*5dd36a3bSchristos <div class="headertitle"> 71*5dd36a3bSchristos<div class="title">ints.c File Reference</div> </div> 72*5dd36a3bSchristos</div><!--header--> 73*5dd36a3bSchristos<div class="contents"> 74*5dd36a3bSchristos<div class="textblock"><code>#include "<a class="el" href="ints_8h_source.html">ints.h</a>"</code><br /> 75*5dd36a3bSchristos</div> 76*5dd36a3bSchristos<p><a href="ints_8c_source.html">Go to the source code of this file.</a></p> 77*5dd36a3bSchristos<table class="memberdecls"> 78*5dd36a3bSchristos<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 79*5dd36a3bSchristosFunctions</h2></td></tr> 80*5dd36a3bSchristos<tr class="memitem:a30bcfb58aa41d4c44bc2d5d6b7de105d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="data_8h.html#ae0fc9740f108f0f0078b93712b061e57">cbor_int_width</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a30bcfb58aa41d4c44bc2d5d6b7de105d">cbor_int_get_width</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr> 81*5dd36a3bSchristos<tr class="memdesc:a30bcfb58aa41d4c44bc2d5d6b7de105d"><td class="mdescLeft"> </td><td class="mdescRight">Queries the integer width. <a href="#a30bcfb58aa41d4c44bc2d5d6b7de105d">More...</a><br /></td></tr> 82*5dd36a3bSchristos<tr class="separator:a30bcfb58aa41d4c44bc2d5d6b7de105d"><td class="memSeparator" colspan="2"> </td></tr> 83*5dd36a3bSchristos<tr class="memitem:a2379bf36318e8e4faa7434c74d8553fb"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a2379bf36318e8e4faa7434c74d8553fb">cbor_get_uint8</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr> 84*5dd36a3bSchristos<tr class="memdesc:a2379bf36318e8e4faa7434c74d8553fb"><td class="mdescLeft"> </td><td class="mdescRight">Extracts the integer value. <a href="#a2379bf36318e8e4faa7434c74d8553fb">More...</a><br /></td></tr> 85*5dd36a3bSchristos<tr class="separator:a2379bf36318e8e4faa7434c74d8553fb"><td class="memSeparator" colspan="2"> </td></tr> 86*5dd36a3bSchristos<tr class="memitem:a06a0997aed16fe6aa540f57bf40ce400"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a06a0997aed16fe6aa540f57bf40ce400">cbor_get_uint16</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr> 87*5dd36a3bSchristos<tr class="memdesc:a06a0997aed16fe6aa540f57bf40ce400"><td class="mdescLeft"> </td><td class="mdescRight">Extracts the integer value. <a href="#a06a0997aed16fe6aa540f57bf40ce400">More...</a><br /></td></tr> 88*5dd36a3bSchristos<tr class="separator:a06a0997aed16fe6aa540f57bf40ce400"><td class="memSeparator" colspan="2"> </td></tr> 89*5dd36a3bSchristos<tr class="memitem:a0480e5b5849b757aa9416a4c1d51b36d"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a0480e5b5849b757aa9416a4c1d51b36d">cbor_get_uint32</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr> 90*5dd36a3bSchristos<tr class="memdesc:a0480e5b5849b757aa9416a4c1d51b36d"><td class="mdescLeft"> </td><td class="mdescRight">Extracts the integer value. <a href="#a0480e5b5849b757aa9416a4c1d51b36d">More...</a><br /></td></tr> 91*5dd36a3bSchristos<tr class="separator:a0480e5b5849b757aa9416a4c1d51b36d"><td class="memSeparator" colspan="2"> </td></tr> 92*5dd36a3bSchristos<tr class="memitem:a839ec2dc97dda1db54657cec50387a12"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a839ec2dc97dda1db54657cec50387a12">cbor_get_uint64</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr> 93*5dd36a3bSchristos<tr class="memdesc:a839ec2dc97dda1db54657cec50387a12"><td class="mdescLeft"> </td><td class="mdescRight">Extracts the integer value. <a href="#a839ec2dc97dda1db54657cec50387a12">More...</a><br /></td></tr> 94*5dd36a3bSchristos<tr class="separator:a839ec2dc97dda1db54657cec50387a12"><td class="memSeparator" colspan="2"> </td></tr> 95*5dd36a3bSchristos<tr class="memitem:aacf93e9a8a2c4217d5cd84207b957cba"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#aacf93e9a8a2c4217d5cd84207b957cba">cbor_get_int</a> (const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr> 96*5dd36a3bSchristos<tr class="memdesc:aacf93e9a8a2c4217d5cd84207b957cba"><td class="mdescLeft"> </td><td class="mdescRight">Extracts the integer value. <a href="#aacf93e9a8a2c4217d5cd84207b957cba">More...</a><br /></td></tr> 97*5dd36a3bSchristos<tr class="separator:aacf93e9a8a2c4217d5cd84207b957cba"><td class="memSeparator" colspan="2"> </td></tr> 98*5dd36a3bSchristos<tr class="memitem:a62e9cd557438c1a5b8cf9a29c1f64baa"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a62e9cd557438c1a5b8cf9a29c1f64baa">cbor_set_uint8</a> (<a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item, uint8_t value)</td></tr> 99*5dd36a3bSchristos<tr class="memdesc:a62e9cd557438c1a5b8cf9a29c1f64baa"><td class="mdescLeft"> </td><td class="mdescRight">Assigns the integer value. <a href="#a62e9cd557438c1a5b8cf9a29c1f64baa">More...</a><br /></td></tr> 100*5dd36a3bSchristos<tr class="separator:a62e9cd557438c1a5b8cf9a29c1f64baa"><td class="memSeparator" colspan="2"> </td></tr> 101*5dd36a3bSchristos<tr class="memitem:a13b3dff419830b59c77ee18d4c03f6eb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a13b3dff419830b59c77ee18d4c03f6eb">cbor_set_uint16</a> (<a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item, uint16_t value)</td></tr> 102*5dd36a3bSchristos<tr class="memdesc:a13b3dff419830b59c77ee18d4c03f6eb"><td class="mdescLeft"> </td><td class="mdescRight">Assigns the integer value. <a href="#a13b3dff419830b59c77ee18d4c03f6eb">More...</a><br /></td></tr> 103*5dd36a3bSchristos<tr class="separator:a13b3dff419830b59c77ee18d4c03f6eb"><td class="memSeparator" colspan="2"> </td></tr> 104*5dd36a3bSchristos<tr class="memitem:a2db697fb733dcbdbbef8714fd182a185"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a2db697fb733dcbdbbef8714fd182a185">cbor_set_uint32</a> (<a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item, uint32_t value)</td></tr> 105*5dd36a3bSchristos<tr class="memdesc:a2db697fb733dcbdbbef8714fd182a185"><td class="mdescLeft"> </td><td class="mdescRight">Assigns the integer value. <a href="#a2db697fb733dcbdbbef8714fd182a185">More...</a><br /></td></tr> 106*5dd36a3bSchristos<tr class="separator:a2db697fb733dcbdbbef8714fd182a185"><td class="memSeparator" colspan="2"> </td></tr> 107*5dd36a3bSchristos<tr class="memitem:af82a3961109f2a36324157e218680016"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#af82a3961109f2a36324157e218680016">cbor_set_uint64</a> (<a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item, uint64_t value)</td></tr> 108*5dd36a3bSchristos<tr class="memdesc:af82a3961109f2a36324157e218680016"><td class="mdescLeft"> </td><td class="mdescRight">Assigns the integer value. <a href="#af82a3961109f2a36324157e218680016">More...</a><br /></td></tr> 109*5dd36a3bSchristos<tr class="separator:af82a3961109f2a36324157e218680016"><td class="memSeparator" colspan="2"> </td></tr> 110*5dd36a3bSchristos<tr class="memitem:aed6a5a44245b8447a768c95e351c2c0c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#aed6a5a44245b8447a768c95e351c2c0c">cbor_mark_uint</a> (<a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr> 111*5dd36a3bSchristos<tr class="memdesc:aed6a5a44245b8447a768c95e351c2c0c"><td class="mdescLeft"> </td><td class="mdescRight">Marks the integer item as a positive integer. <a href="#aed6a5a44245b8447a768c95e351c2c0c">More...</a><br /></td></tr> 112*5dd36a3bSchristos<tr class="separator:aed6a5a44245b8447a768c95e351c2c0c"><td class="memSeparator" colspan="2"> </td></tr> 113*5dd36a3bSchristos<tr class="memitem:a6ef24d3e2636c02de092fdfc337276b1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a6ef24d3e2636c02de092fdfc337276b1">cbor_mark_negint</a> (<a class="el" href="structcbor__item__t.html">cbor_item_t</a> *item)</td></tr> 114*5dd36a3bSchristos<tr class="memdesc:a6ef24d3e2636c02de092fdfc337276b1"><td class="mdescLeft"> </td><td class="mdescRight">Marks the integer item as a negative integer. <a href="#a6ef24d3e2636c02de092fdfc337276b1">More...</a><br /></td></tr> 115*5dd36a3bSchristos<tr class="separator:a6ef24d3e2636c02de092fdfc337276b1"><td class="memSeparator" colspan="2"> </td></tr> 116*5dd36a3bSchristos<tr class="memitem:ae4562e1314b122ae89712dbf0c48c14c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#ae4562e1314b122ae89712dbf0c48c14c">cbor_new_int8</a> ()</td></tr> 117*5dd36a3bSchristos<tr class="memdesc:ae4562e1314b122ae89712dbf0c48c14c"><td class="mdescLeft"> </td><td class="mdescRight">Allocates new integer with 1B width. <a href="#ae4562e1314b122ae89712dbf0c48c14c">More...</a><br /></td></tr> 118*5dd36a3bSchristos<tr class="separator:ae4562e1314b122ae89712dbf0c48c14c"><td class="memSeparator" colspan="2"> </td></tr> 119*5dd36a3bSchristos<tr class="memitem:a68f71f9574e0085f02a27bd0f58d4b55"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a68f71f9574e0085f02a27bd0f58d4b55">cbor_new_int16</a> ()</td></tr> 120*5dd36a3bSchristos<tr class="memdesc:a68f71f9574e0085f02a27bd0f58d4b55"><td class="mdescLeft"> </td><td class="mdescRight">Allocates new integer with 2B width. <a href="#a68f71f9574e0085f02a27bd0f58d4b55">More...</a><br /></td></tr> 121*5dd36a3bSchristos<tr class="separator:a68f71f9574e0085f02a27bd0f58d4b55"><td class="memSeparator" colspan="2"> </td></tr> 122*5dd36a3bSchristos<tr class="memitem:a9cf9db24315a0e622746a546cc112467"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a9cf9db24315a0e622746a546cc112467">cbor_new_int32</a> ()</td></tr> 123*5dd36a3bSchristos<tr class="memdesc:a9cf9db24315a0e622746a546cc112467"><td class="mdescLeft"> </td><td class="mdescRight">Allocates new integer with 4B width. <a href="#a9cf9db24315a0e622746a546cc112467">More...</a><br /></td></tr> 124*5dd36a3bSchristos<tr class="separator:a9cf9db24315a0e622746a546cc112467"><td class="memSeparator" colspan="2"> </td></tr> 125*5dd36a3bSchristos<tr class="memitem:ab863f47b9de930c5d014e0dbb5523d9d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#ab863f47b9de930c5d014e0dbb5523d9d">cbor_new_int64</a> ()</td></tr> 126*5dd36a3bSchristos<tr class="memdesc:ab863f47b9de930c5d014e0dbb5523d9d"><td class="mdescLeft"> </td><td class="mdescRight">Allocates new integer with 8B width. <a href="#ab863f47b9de930c5d014e0dbb5523d9d">More...</a><br /></td></tr> 127*5dd36a3bSchristos<tr class="separator:ab863f47b9de930c5d014e0dbb5523d9d"><td class="memSeparator" colspan="2"> </td></tr> 128*5dd36a3bSchristos<tr class="memitem:ad4d9f92f14c640544386e6655283052d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#ad4d9f92f14c640544386e6655283052d">cbor_build_uint8</a> (uint8_t value)</td></tr> 129*5dd36a3bSchristos<tr class="memdesc:ad4d9f92f14c640544386e6655283052d"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new positive integer. <a href="#ad4d9f92f14c640544386e6655283052d">More...</a><br /></td></tr> 130*5dd36a3bSchristos<tr class="separator:ad4d9f92f14c640544386e6655283052d"><td class="memSeparator" colspan="2"> </td></tr> 131*5dd36a3bSchristos<tr class="memitem:a88f05c625ad9fa182bc95c9c97f87dda"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a88f05c625ad9fa182bc95c9c97f87dda">cbor_build_uint16</a> (uint16_t value)</td></tr> 132*5dd36a3bSchristos<tr class="memdesc:a88f05c625ad9fa182bc95c9c97f87dda"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new positive integer. <a href="#a88f05c625ad9fa182bc95c9c97f87dda">More...</a><br /></td></tr> 133*5dd36a3bSchristos<tr class="separator:a88f05c625ad9fa182bc95c9c97f87dda"><td class="memSeparator" colspan="2"> </td></tr> 134*5dd36a3bSchristos<tr class="memitem:afcefa3190eeeff1e5ed0b5217761ad5a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#afcefa3190eeeff1e5ed0b5217761ad5a">cbor_build_uint32</a> (uint32_t value)</td></tr> 135*5dd36a3bSchristos<tr class="memdesc:afcefa3190eeeff1e5ed0b5217761ad5a"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new positive integer. <a href="#afcefa3190eeeff1e5ed0b5217761ad5a">More...</a><br /></td></tr> 136*5dd36a3bSchristos<tr class="separator:afcefa3190eeeff1e5ed0b5217761ad5a"><td class="memSeparator" colspan="2"> </td></tr> 137*5dd36a3bSchristos<tr class="memitem:adff4351ebc5bb6f69d8a2ea0c9439fc5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#adff4351ebc5bb6f69d8a2ea0c9439fc5">cbor_build_uint64</a> (uint64_t value)</td></tr> 138*5dd36a3bSchristos<tr class="memdesc:adff4351ebc5bb6f69d8a2ea0c9439fc5"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new positive integer. <a href="#adff4351ebc5bb6f69d8a2ea0c9439fc5">More...</a><br /></td></tr> 139*5dd36a3bSchristos<tr class="separator:adff4351ebc5bb6f69d8a2ea0c9439fc5"><td class="memSeparator" colspan="2"> </td></tr> 140*5dd36a3bSchristos<tr class="memitem:a28553eb079f8778babebf869e33f27a2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a28553eb079f8778babebf869e33f27a2">cbor_build_negint8</a> (uint8_t value)</td></tr> 141*5dd36a3bSchristos<tr class="memdesc:a28553eb079f8778babebf869e33f27a2"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new negative integer. <a href="#a28553eb079f8778babebf869e33f27a2">More...</a><br /></td></tr> 142*5dd36a3bSchristos<tr class="separator:a28553eb079f8778babebf869e33f27a2"><td class="memSeparator" colspan="2"> </td></tr> 143*5dd36a3bSchristos<tr class="memitem:ae40a5af0998889c6550ceb0914b2cd9b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#ae40a5af0998889c6550ceb0914b2cd9b">cbor_build_negint16</a> (uint16_t value)</td></tr> 144*5dd36a3bSchristos<tr class="memdesc:ae40a5af0998889c6550ceb0914b2cd9b"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new negative integer. <a href="#ae40a5af0998889c6550ceb0914b2cd9b">More...</a><br /></td></tr> 145*5dd36a3bSchristos<tr class="separator:ae40a5af0998889c6550ceb0914b2cd9b"><td class="memSeparator" colspan="2"> </td></tr> 146*5dd36a3bSchristos<tr class="memitem:a35d8b500ae33d4fc0262de4830382529"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#a35d8b500ae33d4fc0262de4830382529">cbor_build_negint32</a> (uint32_t value)</td></tr> 147*5dd36a3bSchristos<tr class="memdesc:a35d8b500ae33d4fc0262de4830382529"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new negative integer. <a href="#a35d8b500ae33d4fc0262de4830382529">More...</a><br /></td></tr> 148*5dd36a3bSchristos<tr class="separator:a35d8b500ae33d4fc0262de4830382529"><td class="memSeparator" colspan="2"> </td></tr> 149*5dd36a3bSchristos<tr class="memitem:ae24074614ece5da3024a536093d21678"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="ints_8c.html#ae24074614ece5da3024a536093d21678">cbor_build_negint64</a> (uint64_t value)</td></tr> 150*5dd36a3bSchristos<tr class="memdesc:ae24074614ece5da3024a536093d21678"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new negative integer. <a href="#ae24074614ece5da3024a536093d21678">More...</a><br /></td></tr> 151*5dd36a3bSchristos<tr class="separator:ae24074614ece5da3024a536093d21678"><td class="memSeparator" colspan="2"> </td></tr> 152*5dd36a3bSchristos</table> 153*5dd36a3bSchristos<h2 class="groupheader">Function Documentation</h2> 154*5dd36a3bSchristos<a id="ae40a5af0998889c6550ceb0914b2cd9b"></a> 155*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ae40a5af0998889c6550ceb0914b2cd9b">§ </a></span>cbor_build_negint16()</h2> 156*5dd36a3bSchristos 157*5dd36a3bSchristos<div class="memitem"> 158*5dd36a3bSchristos<div class="memproto"> 159*5dd36a3bSchristos <table class="memname"> 160*5dd36a3bSchristos <tr> 161*5dd36a3bSchristos <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_build_negint16 </td> 162*5dd36a3bSchristos <td>(</td> 163*5dd36a3bSchristos <td class="paramtype">uint16_t </td> 164*5dd36a3bSchristos <td class="paramname"><em>value</em></td><td>)</td> 165*5dd36a3bSchristos <td></td> 166*5dd36a3bSchristos </tr> 167*5dd36a3bSchristos </table> 168*5dd36a3bSchristos</div><div class="memdoc"> 169*5dd36a3bSchristos 170*5dd36a3bSchristos<p>Constructs a new negative integer. </p> 171*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 172*5dd36a3bSchristos <table class="params"> 173*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to use </td></tr> 174*5dd36a3bSchristos </table> 175*5dd36a3bSchristos </dd> 176*5dd36a3bSchristos</dl> 177*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> negative integer </dd></dl> 178*5dd36a3bSchristos 179*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00185">185</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 180*5dd36a3bSchristos 181*5dd36a3bSchristos</div> 182*5dd36a3bSchristos</div> 183*5dd36a3bSchristos<a id="a35d8b500ae33d4fc0262de4830382529"></a> 184*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a35d8b500ae33d4fc0262de4830382529">§ </a></span>cbor_build_negint32()</h2> 185*5dd36a3bSchristos 186*5dd36a3bSchristos<div class="memitem"> 187*5dd36a3bSchristos<div class="memproto"> 188*5dd36a3bSchristos <table class="memname"> 189*5dd36a3bSchristos <tr> 190*5dd36a3bSchristos <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_build_negint32 </td> 191*5dd36a3bSchristos <td>(</td> 192*5dd36a3bSchristos <td class="paramtype">uint32_t </td> 193*5dd36a3bSchristos <td class="paramname"><em>value</em></td><td>)</td> 194*5dd36a3bSchristos <td></td> 195*5dd36a3bSchristos </tr> 196*5dd36a3bSchristos </table> 197*5dd36a3bSchristos</div><div class="memdoc"> 198*5dd36a3bSchristos 199*5dd36a3bSchristos<p>Constructs a new negative integer. </p> 200*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 201*5dd36a3bSchristos <table class="params"> 202*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to use </td></tr> 203*5dd36a3bSchristos </table> 204*5dd36a3bSchristos </dd> 205*5dd36a3bSchristos</dl> 206*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> negative integer </dd></dl> 207*5dd36a3bSchristos 208*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00193">193</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 209*5dd36a3bSchristos 210*5dd36a3bSchristos</div> 211*5dd36a3bSchristos</div> 212*5dd36a3bSchristos<a id="ae24074614ece5da3024a536093d21678"></a> 213*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ae24074614ece5da3024a536093d21678">§ </a></span>cbor_build_negint64()</h2> 214*5dd36a3bSchristos 215*5dd36a3bSchristos<div class="memitem"> 216*5dd36a3bSchristos<div class="memproto"> 217*5dd36a3bSchristos <table class="memname"> 218*5dd36a3bSchristos <tr> 219*5dd36a3bSchristos <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_build_negint64 </td> 220*5dd36a3bSchristos <td>(</td> 221*5dd36a3bSchristos <td class="paramtype">uint64_t </td> 222*5dd36a3bSchristos <td class="paramname"><em>value</em></td><td>)</td> 223*5dd36a3bSchristos <td></td> 224*5dd36a3bSchristos </tr> 225*5dd36a3bSchristos </table> 226*5dd36a3bSchristos</div><div class="memdoc"> 227*5dd36a3bSchristos 228*5dd36a3bSchristos<p>Constructs a new negative integer. </p> 229*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 230*5dd36a3bSchristos <table class="params"> 231*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to use </td></tr> 232*5dd36a3bSchristos </table> 233*5dd36a3bSchristos </dd> 234*5dd36a3bSchristos</dl> 235*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> negative integer </dd></dl> 236*5dd36a3bSchristos 237*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00201">201</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 238*5dd36a3bSchristos 239*5dd36a3bSchristos</div> 240*5dd36a3bSchristos</div> 241*5dd36a3bSchristos<a id="a28553eb079f8778babebf869e33f27a2"></a> 242*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a28553eb079f8778babebf869e33f27a2">§ </a></span>cbor_build_negint8()</h2> 243*5dd36a3bSchristos 244*5dd36a3bSchristos<div class="memitem"> 245*5dd36a3bSchristos<div class="memproto"> 246*5dd36a3bSchristos <table class="memname"> 247*5dd36a3bSchristos <tr> 248*5dd36a3bSchristos <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_build_negint8 </td> 249*5dd36a3bSchristos <td>(</td> 250*5dd36a3bSchristos <td class="paramtype">uint8_t </td> 251*5dd36a3bSchristos <td class="paramname"><em>value</em></td><td>)</td> 252*5dd36a3bSchristos <td></td> 253*5dd36a3bSchristos </tr> 254*5dd36a3bSchristos </table> 255*5dd36a3bSchristos</div><div class="memdoc"> 256*5dd36a3bSchristos 257*5dd36a3bSchristos<p>Constructs a new negative integer. </p> 258*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 259*5dd36a3bSchristos <table class="params"> 260*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to use </td></tr> 261*5dd36a3bSchristos </table> 262*5dd36a3bSchristos </dd> 263*5dd36a3bSchristos</dl> 264*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> negative integer </dd></dl> 265*5dd36a3bSchristos 266*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00177">177</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 267*5dd36a3bSchristos 268*5dd36a3bSchristos</div> 269*5dd36a3bSchristos</div> 270*5dd36a3bSchristos<a id="a88f05c625ad9fa182bc95c9c97f87dda"></a> 271*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a88f05c625ad9fa182bc95c9c97f87dda">§ </a></span>cbor_build_uint16()</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"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_build_uint16 </td> 278*5dd36a3bSchristos <td>(</td> 279*5dd36a3bSchristos <td class="paramtype">uint16_t </td> 280*5dd36a3bSchristos <td class="paramname"><em>value</em></td><td>)</td> 281*5dd36a3bSchristos <td></td> 282*5dd36a3bSchristos </tr> 283*5dd36a3bSchristos </table> 284*5dd36a3bSchristos</div><div class="memdoc"> 285*5dd36a3bSchristos 286*5dd36a3bSchristos<p>Constructs a new positive integer. </p> 287*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 288*5dd36a3bSchristos <table class="params"> 289*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to use </td></tr> 290*5dd36a3bSchristos </table> 291*5dd36a3bSchristos </dd> 292*5dd36a3bSchristos</dl> 293*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> positive integer </dd></dl> 294*5dd36a3bSchristos 295*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00153">153</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 296*5dd36a3bSchristos 297*5dd36a3bSchristos</div> 298*5dd36a3bSchristos</div> 299*5dd36a3bSchristos<a id="afcefa3190eeeff1e5ed0b5217761ad5a"></a> 300*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#afcefa3190eeeff1e5ed0b5217761ad5a">§ </a></span>cbor_build_uint32()</h2> 301*5dd36a3bSchristos 302*5dd36a3bSchristos<div class="memitem"> 303*5dd36a3bSchristos<div class="memproto"> 304*5dd36a3bSchristos <table class="memname"> 305*5dd36a3bSchristos <tr> 306*5dd36a3bSchristos <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_build_uint32 </td> 307*5dd36a3bSchristos <td>(</td> 308*5dd36a3bSchristos <td class="paramtype">uint32_t </td> 309*5dd36a3bSchristos <td class="paramname"><em>value</em></td><td>)</td> 310*5dd36a3bSchristos <td></td> 311*5dd36a3bSchristos </tr> 312*5dd36a3bSchristos </table> 313*5dd36a3bSchristos</div><div class="memdoc"> 314*5dd36a3bSchristos 315*5dd36a3bSchristos<p>Constructs a new positive integer. </p> 316*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 317*5dd36a3bSchristos <table class="params"> 318*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to use </td></tr> 319*5dd36a3bSchristos </table> 320*5dd36a3bSchristos </dd> 321*5dd36a3bSchristos</dl> 322*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> positive integer </dd></dl> 323*5dd36a3bSchristos 324*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00161">161</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 325*5dd36a3bSchristos 326*5dd36a3bSchristos</div> 327*5dd36a3bSchristos</div> 328*5dd36a3bSchristos<a id="adff4351ebc5bb6f69d8a2ea0c9439fc5"></a> 329*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#adff4351ebc5bb6f69d8a2ea0c9439fc5">§ </a></span>cbor_build_uint64()</h2> 330*5dd36a3bSchristos 331*5dd36a3bSchristos<div class="memitem"> 332*5dd36a3bSchristos<div class="memproto"> 333*5dd36a3bSchristos <table class="memname"> 334*5dd36a3bSchristos <tr> 335*5dd36a3bSchristos <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_build_uint64 </td> 336*5dd36a3bSchristos <td>(</td> 337*5dd36a3bSchristos <td class="paramtype">uint64_t </td> 338*5dd36a3bSchristos <td class="paramname"><em>value</em></td><td>)</td> 339*5dd36a3bSchristos <td></td> 340*5dd36a3bSchristos </tr> 341*5dd36a3bSchristos </table> 342*5dd36a3bSchristos</div><div class="memdoc"> 343*5dd36a3bSchristos 344*5dd36a3bSchristos<p>Constructs a new positive integer. </p> 345*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 346*5dd36a3bSchristos <table class="params"> 347*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to use </td></tr> 348*5dd36a3bSchristos </table> 349*5dd36a3bSchristos </dd> 350*5dd36a3bSchristos</dl> 351*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> positive integer </dd></dl> 352*5dd36a3bSchristos 353*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00169">169</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 354*5dd36a3bSchristos 355*5dd36a3bSchristos</div> 356*5dd36a3bSchristos</div> 357*5dd36a3bSchristos<a id="ad4d9f92f14c640544386e6655283052d"></a> 358*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ad4d9f92f14c640544386e6655283052d">§ </a></span>cbor_build_uint8()</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"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_build_uint8 </td> 365*5dd36a3bSchristos <td>(</td> 366*5dd36a3bSchristos <td class="paramtype">uint8_t </td> 367*5dd36a3bSchristos <td class="paramname"><em>value</em></td><td>)</td> 368*5dd36a3bSchristos <td></td> 369*5dd36a3bSchristos </tr> 370*5dd36a3bSchristos </table> 371*5dd36a3bSchristos</div><div class="memdoc"> 372*5dd36a3bSchristos 373*5dd36a3bSchristos<p>Constructs a new positive integer. </p> 374*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 375*5dd36a3bSchristos <table class="params"> 376*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to use </td></tr> 377*5dd36a3bSchristos </table> 378*5dd36a3bSchristos </dd> 379*5dd36a3bSchristos</dl> 380*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> positive integer </dd></dl> 381*5dd36a3bSchristos 382*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00145">145</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 383*5dd36a3bSchristos 384*5dd36a3bSchristos</div> 385*5dd36a3bSchristos</div> 386*5dd36a3bSchristos<a id="aacf93e9a8a2c4217d5cd84207b957cba"></a> 387*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#aacf93e9a8a2c4217d5cd84207b957cba">§ </a></span>cbor_get_int()</h2> 388*5dd36a3bSchristos 389*5dd36a3bSchristos<div class="memitem"> 390*5dd36a3bSchristos<div class="memproto"> 391*5dd36a3bSchristos <table class="memname"> 392*5dd36a3bSchristos <tr> 393*5dd36a3bSchristos <td class="memname">uint64_t cbor_get_int </td> 394*5dd36a3bSchristos <td>(</td> 395*5dd36a3bSchristos <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 396*5dd36a3bSchristos <td class="paramname"><em>item</em></td><td>)</td> 397*5dd36a3bSchristos <td></td> 398*5dd36a3bSchristos </tr> 399*5dd36a3bSchristos </table> 400*5dd36a3bSchristos</div><div class="memdoc"> 401*5dd36a3bSchristos 402*5dd36a3bSchristos<p>Extracts the integer value. </p> 403*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 404*5dd36a3bSchristos <table class="params"> 405*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer </td></tr> 406*5dd36a3bSchristos </table> 407*5dd36a3bSchristos </dd> 408*5dd36a3bSchristos</dl> 409*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>the value, extended to <code>uint64_t</code> </dd></dl> 410*5dd36a3bSchristos 411*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00044">44</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 412*5dd36a3bSchristos 413*5dd36a3bSchristos</div> 414*5dd36a3bSchristos</div> 415*5dd36a3bSchristos<a id="a06a0997aed16fe6aa540f57bf40ce400"></a> 416*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a06a0997aed16fe6aa540f57bf40ce400">§ </a></span>cbor_get_uint16()</h2> 417*5dd36a3bSchristos 418*5dd36a3bSchristos<div class="memitem"> 419*5dd36a3bSchristos<div class="memproto"> 420*5dd36a3bSchristos <table class="memname"> 421*5dd36a3bSchristos <tr> 422*5dd36a3bSchristos <td class="memname">uint16_t cbor_get_uint16 </td> 423*5dd36a3bSchristos <td>(</td> 424*5dd36a3bSchristos <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 425*5dd36a3bSchristos <td class="paramname"><em>item</em></td><td>)</td> 426*5dd36a3bSchristos <td></td> 427*5dd36a3bSchristos </tr> 428*5dd36a3bSchristos </table> 429*5dd36a3bSchristos</div><div class="memdoc"> 430*5dd36a3bSchristos 431*5dd36a3bSchristos<p>Extracts the integer value. </p> 432*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 433*5dd36a3bSchristos <table class="params"> 434*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer </td></tr> 435*5dd36a3bSchristos </table> 436*5dd36a3bSchristos </dd> 437*5dd36a3bSchristos</dl> 438*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>the value </dd></dl> 439*5dd36a3bSchristos 440*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00023">23</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 441*5dd36a3bSchristos 442*5dd36a3bSchristos</div> 443*5dd36a3bSchristos</div> 444*5dd36a3bSchristos<a id="a0480e5b5849b757aa9416a4c1d51b36d"></a> 445*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a0480e5b5849b757aa9416a4c1d51b36d">§ </a></span>cbor_get_uint32()</h2> 446*5dd36a3bSchristos 447*5dd36a3bSchristos<div class="memitem"> 448*5dd36a3bSchristos<div class="memproto"> 449*5dd36a3bSchristos <table class="memname"> 450*5dd36a3bSchristos <tr> 451*5dd36a3bSchristos <td class="memname">uint32_t cbor_get_uint32 </td> 452*5dd36a3bSchristos <td>(</td> 453*5dd36a3bSchristos <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 454*5dd36a3bSchristos <td class="paramname"><em>item</em></td><td>)</td> 455*5dd36a3bSchristos <td></td> 456*5dd36a3bSchristos </tr> 457*5dd36a3bSchristos </table> 458*5dd36a3bSchristos</div><div class="memdoc"> 459*5dd36a3bSchristos 460*5dd36a3bSchristos<p>Extracts the integer value. </p> 461*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 462*5dd36a3bSchristos <table class="params"> 463*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer </td></tr> 464*5dd36a3bSchristos </table> 465*5dd36a3bSchristos </dd> 466*5dd36a3bSchristos</dl> 467*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>the value </dd></dl> 468*5dd36a3bSchristos 469*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00030">30</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 470*5dd36a3bSchristos 471*5dd36a3bSchristos</div> 472*5dd36a3bSchristos</div> 473*5dd36a3bSchristos<a id="a839ec2dc97dda1db54657cec50387a12"></a> 474*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a839ec2dc97dda1db54657cec50387a12">§ </a></span>cbor_get_uint64()</h2> 475*5dd36a3bSchristos 476*5dd36a3bSchristos<div class="memitem"> 477*5dd36a3bSchristos<div class="memproto"> 478*5dd36a3bSchristos <table class="memname"> 479*5dd36a3bSchristos <tr> 480*5dd36a3bSchristos <td class="memname">uint64_t cbor_get_uint64 </td> 481*5dd36a3bSchristos <td>(</td> 482*5dd36a3bSchristos <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 483*5dd36a3bSchristos <td class="paramname"><em>item</em></td><td>)</td> 484*5dd36a3bSchristos <td></td> 485*5dd36a3bSchristos </tr> 486*5dd36a3bSchristos </table> 487*5dd36a3bSchristos</div><div class="memdoc"> 488*5dd36a3bSchristos 489*5dd36a3bSchristos<p>Extracts the integer value. </p> 490*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 491*5dd36a3bSchristos <table class="params"> 492*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer </td></tr> 493*5dd36a3bSchristos </table> 494*5dd36a3bSchristos </dd> 495*5dd36a3bSchristos</dl> 496*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>the value </dd></dl> 497*5dd36a3bSchristos 498*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00037">37</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 499*5dd36a3bSchristos 500*5dd36a3bSchristos</div> 501*5dd36a3bSchristos</div> 502*5dd36a3bSchristos<a id="a2379bf36318e8e4faa7434c74d8553fb"></a> 503*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a2379bf36318e8e4faa7434c74d8553fb">§ </a></span>cbor_get_uint8()</h2> 504*5dd36a3bSchristos 505*5dd36a3bSchristos<div class="memitem"> 506*5dd36a3bSchristos<div class="memproto"> 507*5dd36a3bSchristos <table class="memname"> 508*5dd36a3bSchristos <tr> 509*5dd36a3bSchristos <td class="memname">uint8_t cbor_get_uint8 </td> 510*5dd36a3bSchristos <td>(</td> 511*5dd36a3bSchristos <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 512*5dd36a3bSchristos <td class="paramname"><em>item</em></td><td>)</td> 513*5dd36a3bSchristos <td></td> 514*5dd36a3bSchristos </tr> 515*5dd36a3bSchristos </table> 516*5dd36a3bSchristos</div><div class="memdoc"> 517*5dd36a3bSchristos 518*5dd36a3bSchristos<p>Extracts the integer value. </p> 519*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 520*5dd36a3bSchristos <table class="params"> 521*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer </td></tr> 522*5dd36a3bSchristos </table> 523*5dd36a3bSchristos </dd> 524*5dd36a3bSchristos</dl> 525*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>the value </dd></dl> 526*5dd36a3bSchristos 527*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00016">16</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 528*5dd36a3bSchristos 529*5dd36a3bSchristos</div> 530*5dd36a3bSchristos</div> 531*5dd36a3bSchristos<a id="a30bcfb58aa41d4c44bc2d5d6b7de105d"></a> 532*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a30bcfb58aa41d4c44bc2d5d6b7de105d">§ </a></span>cbor_int_get_width()</h2> 533*5dd36a3bSchristos 534*5dd36a3bSchristos<div class="memitem"> 535*5dd36a3bSchristos<div class="memproto"> 536*5dd36a3bSchristos <table class="memname"> 537*5dd36a3bSchristos <tr> 538*5dd36a3bSchristos <td class="memname"><a class="el" href="data_8h.html#ae0fc9740f108f0f0078b93712b061e57">cbor_int_width</a> cbor_int_get_width </td> 539*5dd36a3bSchristos <td>(</td> 540*5dd36a3bSchristos <td class="paramtype">const <a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 541*5dd36a3bSchristos <td class="paramname"><em>item</em></td><td>)</td> 542*5dd36a3bSchristos <td></td> 543*5dd36a3bSchristos </tr> 544*5dd36a3bSchristos </table> 545*5dd36a3bSchristos</div><div class="memdoc"> 546*5dd36a3bSchristos 547*5dd36a3bSchristos<p>Queries the integer width. </p> 548*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 549*5dd36a3bSchristos <table class="params"> 550*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer item </td></tr> 551*5dd36a3bSchristos </table> 552*5dd36a3bSchristos </dd> 553*5dd36a3bSchristos</dl> 554*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd>the width </dd></dl> 555*5dd36a3bSchristos 556*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00010">10</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 557*5dd36a3bSchristos 558*5dd36a3bSchristos</div> 559*5dd36a3bSchristos</div> 560*5dd36a3bSchristos<a id="a6ef24d3e2636c02de092fdfc337276b1"></a> 561*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a6ef24d3e2636c02de092fdfc337276b1">§ </a></span>cbor_mark_negint()</h2> 562*5dd36a3bSchristos 563*5dd36a3bSchristos<div class="memitem"> 564*5dd36a3bSchristos<div class="memproto"> 565*5dd36a3bSchristos <table class="memname"> 566*5dd36a3bSchristos <tr> 567*5dd36a3bSchristos <td class="memname">void cbor_mark_negint </td> 568*5dd36a3bSchristos <td>(</td> 569*5dd36a3bSchristos <td class="paramtype"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 570*5dd36a3bSchristos <td class="paramname"><em>item</em></td><td>)</td> 571*5dd36a3bSchristos <td></td> 572*5dd36a3bSchristos </tr> 573*5dd36a3bSchristos </table> 574*5dd36a3bSchristos</div><div class="memdoc"> 575*5dd36a3bSchristos 576*5dd36a3bSchristos<p>Marks the integer item as a negative integer. </p> 577*5dd36a3bSchristos<p>The data value is not changed</p> 578*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 579*5dd36a3bSchristos <table class="params"> 580*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer item </td></tr> 581*5dd36a3bSchristos </table> 582*5dd36a3bSchristos </dd> 583*5dd36a3bSchristos</dl> 584*5dd36a3bSchristos 585*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00091">91</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 586*5dd36a3bSchristos 587*5dd36a3bSchristos</div> 588*5dd36a3bSchristos</div> 589*5dd36a3bSchristos<a id="aed6a5a44245b8447a768c95e351c2c0c"></a> 590*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#aed6a5a44245b8447a768c95e351c2c0c">§ </a></span>cbor_mark_uint()</h2> 591*5dd36a3bSchristos 592*5dd36a3bSchristos<div class="memitem"> 593*5dd36a3bSchristos<div class="memproto"> 594*5dd36a3bSchristos <table class="memname"> 595*5dd36a3bSchristos <tr> 596*5dd36a3bSchristos <td class="memname">void cbor_mark_uint </td> 597*5dd36a3bSchristos <td>(</td> 598*5dd36a3bSchristos <td class="paramtype"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 599*5dd36a3bSchristos <td class="paramname"><em>item</em></td><td>)</td> 600*5dd36a3bSchristos <td></td> 601*5dd36a3bSchristos </tr> 602*5dd36a3bSchristos </table> 603*5dd36a3bSchristos</div><div class="memdoc"> 604*5dd36a3bSchristos 605*5dd36a3bSchristos<p>Marks the integer item as a positive integer. </p> 606*5dd36a3bSchristos<p>The data value is not changed</p> 607*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 608*5dd36a3bSchristos <table class="params"> 609*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer item </td></tr> 610*5dd36a3bSchristos </table> 611*5dd36a3bSchristos </dd> 612*5dd36a3bSchristos</dl> 613*5dd36a3bSchristos 614*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00085">85</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 615*5dd36a3bSchristos 616*5dd36a3bSchristos</div> 617*5dd36a3bSchristos</div> 618*5dd36a3bSchristos<a id="a68f71f9574e0085f02a27bd0f58d4b55"></a> 619*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a68f71f9574e0085f02a27bd0f58d4b55">§ </a></span>cbor_new_int16()</h2> 620*5dd36a3bSchristos 621*5dd36a3bSchristos<div class="memitem"> 622*5dd36a3bSchristos<div class="memproto"> 623*5dd36a3bSchristos <table class="memname"> 624*5dd36a3bSchristos <tr> 625*5dd36a3bSchristos <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_new_int16 </td> 626*5dd36a3bSchristos <td>(</td> 627*5dd36a3bSchristos <td class="paramname"></td><td>)</td> 628*5dd36a3bSchristos <td></td> 629*5dd36a3bSchristos </tr> 630*5dd36a3bSchristos </table> 631*5dd36a3bSchristos</div><div class="memdoc"> 632*5dd36a3bSchristos 633*5dd36a3bSchristos<p>Allocates new integer with 2B width. </p> 634*5dd36a3bSchristos<p>The width cannot be changed once allocated</p> 635*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> positive integer. The value is not initialized. </dd></dl> 636*5dd36a3bSchristos 637*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00109">109</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 638*5dd36a3bSchristos 639*5dd36a3bSchristos</div> 640*5dd36a3bSchristos</div> 641*5dd36a3bSchristos<a id="a9cf9db24315a0e622746a546cc112467"></a> 642*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a9cf9db24315a0e622746a546cc112467">§ </a></span>cbor_new_int32()</h2> 643*5dd36a3bSchristos 644*5dd36a3bSchristos<div class="memitem"> 645*5dd36a3bSchristos<div class="memproto"> 646*5dd36a3bSchristos <table class="memname"> 647*5dd36a3bSchristos <tr> 648*5dd36a3bSchristos <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_new_int32 </td> 649*5dd36a3bSchristos <td>(</td> 650*5dd36a3bSchristos <td class="paramname"></td><td>)</td> 651*5dd36a3bSchristos <td></td> 652*5dd36a3bSchristos </tr> 653*5dd36a3bSchristos </table> 654*5dd36a3bSchristos</div><div class="memdoc"> 655*5dd36a3bSchristos 656*5dd36a3bSchristos<p>Allocates new integer with 4B width. </p> 657*5dd36a3bSchristos<p>The width cannot be changed once allocated</p> 658*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> positive integer. The value is not initialized. </dd></dl> 659*5dd36a3bSchristos 660*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00121">121</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 661*5dd36a3bSchristos 662*5dd36a3bSchristos</div> 663*5dd36a3bSchristos</div> 664*5dd36a3bSchristos<a id="ab863f47b9de930c5d014e0dbb5523d9d"></a> 665*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ab863f47b9de930c5d014e0dbb5523d9d">§ </a></span>cbor_new_int64()</h2> 666*5dd36a3bSchristos 667*5dd36a3bSchristos<div class="memitem"> 668*5dd36a3bSchristos<div class="memproto"> 669*5dd36a3bSchristos <table class="memname"> 670*5dd36a3bSchristos <tr> 671*5dd36a3bSchristos <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_new_int64 </td> 672*5dd36a3bSchristos <td>(</td> 673*5dd36a3bSchristos <td class="paramname"></td><td>)</td> 674*5dd36a3bSchristos <td></td> 675*5dd36a3bSchristos </tr> 676*5dd36a3bSchristos </table> 677*5dd36a3bSchristos</div><div class="memdoc"> 678*5dd36a3bSchristos 679*5dd36a3bSchristos<p>Allocates new integer with 8B width. </p> 680*5dd36a3bSchristos<p>The width cannot be changed once allocated</p> 681*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> positive integer. The value is not initialized. </dd></dl> 682*5dd36a3bSchristos 683*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00133">133</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 684*5dd36a3bSchristos 685*5dd36a3bSchristos</div> 686*5dd36a3bSchristos</div> 687*5dd36a3bSchristos<a id="ae4562e1314b122ae89712dbf0c48c14c"></a> 688*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ae4562e1314b122ae89712dbf0c48c14c">§ </a></span>cbor_new_int8()</h2> 689*5dd36a3bSchristos 690*5dd36a3bSchristos<div class="memitem"> 691*5dd36a3bSchristos<div class="memproto"> 692*5dd36a3bSchristos <table class="memname"> 693*5dd36a3bSchristos <tr> 694*5dd36a3bSchristos <td class="memname"><a class="el" href="structcbor__item__t.html">cbor_item_t</a>* cbor_new_int8 </td> 695*5dd36a3bSchristos <td>(</td> 696*5dd36a3bSchristos <td class="paramname"></td><td>)</td> 697*5dd36a3bSchristos <td></td> 698*5dd36a3bSchristos </tr> 699*5dd36a3bSchristos </table> 700*5dd36a3bSchristos</div><div class="memdoc"> 701*5dd36a3bSchristos 702*5dd36a3bSchristos<p>Allocates new integer with 1B width. </p> 703*5dd36a3bSchristos<p>The width cannot be changed once allocated</p> 704*5dd36a3bSchristos<dl class="section return"><dt>Returns</dt><dd><b>new</b> positive integer. The value is not initialized. </dd></dl> 705*5dd36a3bSchristos 706*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00097">97</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 707*5dd36a3bSchristos 708*5dd36a3bSchristos</div> 709*5dd36a3bSchristos</div> 710*5dd36a3bSchristos<a id="a13b3dff419830b59c77ee18d4c03f6eb"></a> 711*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a13b3dff419830b59c77ee18d4c03f6eb">§ </a></span>cbor_set_uint16()</h2> 712*5dd36a3bSchristos 713*5dd36a3bSchristos<div class="memitem"> 714*5dd36a3bSchristos<div class="memproto"> 715*5dd36a3bSchristos <table class="memname"> 716*5dd36a3bSchristos <tr> 717*5dd36a3bSchristos <td class="memname">void cbor_set_uint16 </td> 718*5dd36a3bSchristos <td>(</td> 719*5dd36a3bSchristos <td class="paramtype"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 720*5dd36a3bSchristos <td class="paramname"><em>item</em>, </td> 721*5dd36a3bSchristos </tr> 722*5dd36a3bSchristos <tr> 723*5dd36a3bSchristos <td class="paramkey"></td> 724*5dd36a3bSchristos <td></td> 725*5dd36a3bSchristos <td class="paramtype">uint16_t </td> 726*5dd36a3bSchristos <td class="paramname"><em>value</em> </td> 727*5dd36a3bSchristos </tr> 728*5dd36a3bSchristos <tr> 729*5dd36a3bSchristos <td></td> 730*5dd36a3bSchristos <td>)</td> 731*5dd36a3bSchristos <td></td><td></td> 732*5dd36a3bSchristos </tr> 733*5dd36a3bSchristos </table> 734*5dd36a3bSchristos</div><div class="memdoc"> 735*5dd36a3bSchristos 736*5dd36a3bSchristos<p>Assigns the integer value. </p> 737*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 738*5dd36a3bSchristos <table class="params"> 739*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer item </td></tr> 740*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to assign. For negative integer, the logical value is <code>-value - 1</code> </td></tr> 741*5dd36a3bSchristos </table> 742*5dd36a3bSchristos </dd> 743*5dd36a3bSchristos</dl> 744*5dd36a3bSchristos 745*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00063">63</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 746*5dd36a3bSchristos 747*5dd36a3bSchristos</div> 748*5dd36a3bSchristos</div> 749*5dd36a3bSchristos<a id="a2db697fb733dcbdbbef8714fd182a185"></a> 750*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a2db697fb733dcbdbbef8714fd182a185">§ </a></span>cbor_set_uint32()</h2> 751*5dd36a3bSchristos 752*5dd36a3bSchristos<div class="memitem"> 753*5dd36a3bSchristos<div class="memproto"> 754*5dd36a3bSchristos <table class="memname"> 755*5dd36a3bSchristos <tr> 756*5dd36a3bSchristos <td class="memname">void cbor_set_uint32 </td> 757*5dd36a3bSchristos <td>(</td> 758*5dd36a3bSchristos <td class="paramtype"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 759*5dd36a3bSchristos <td class="paramname"><em>item</em>, </td> 760*5dd36a3bSchristos </tr> 761*5dd36a3bSchristos <tr> 762*5dd36a3bSchristos <td class="paramkey"></td> 763*5dd36a3bSchristos <td></td> 764*5dd36a3bSchristos <td class="paramtype">uint32_t </td> 765*5dd36a3bSchristos <td class="paramname"><em>value</em> </td> 766*5dd36a3bSchristos </tr> 767*5dd36a3bSchristos <tr> 768*5dd36a3bSchristos <td></td> 769*5dd36a3bSchristos <td>)</td> 770*5dd36a3bSchristos <td></td><td></td> 771*5dd36a3bSchristos </tr> 772*5dd36a3bSchristos </table> 773*5dd36a3bSchristos</div><div class="memdoc"> 774*5dd36a3bSchristos 775*5dd36a3bSchristos<p>Assigns the integer value. </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>positive or negative integer item </td></tr> 779*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to assign. For negative integer, the logical value is <code>-value - 1</code> </td></tr> 780*5dd36a3bSchristos </table> 781*5dd36a3bSchristos </dd> 782*5dd36a3bSchristos</dl> 783*5dd36a3bSchristos 784*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00071">71</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 785*5dd36a3bSchristos 786*5dd36a3bSchristos</div> 787*5dd36a3bSchristos</div> 788*5dd36a3bSchristos<a id="af82a3961109f2a36324157e218680016"></a> 789*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#af82a3961109f2a36324157e218680016">§ </a></span>cbor_set_uint64()</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">void cbor_set_uint64 </td> 796*5dd36a3bSchristos <td>(</td> 797*5dd36a3bSchristos <td class="paramtype"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 798*5dd36a3bSchristos <td class="paramname"><em>item</em>, </td> 799*5dd36a3bSchristos </tr> 800*5dd36a3bSchristos <tr> 801*5dd36a3bSchristos <td class="paramkey"></td> 802*5dd36a3bSchristos <td></td> 803*5dd36a3bSchristos <td class="paramtype">uint64_t </td> 804*5dd36a3bSchristos <td class="paramname"><em>value</em> </td> 805*5dd36a3bSchristos </tr> 806*5dd36a3bSchristos <tr> 807*5dd36a3bSchristos <td></td> 808*5dd36a3bSchristos <td>)</td> 809*5dd36a3bSchristos <td></td><td></td> 810*5dd36a3bSchristos </tr> 811*5dd36a3bSchristos </table> 812*5dd36a3bSchristos</div><div class="memdoc"> 813*5dd36a3bSchristos 814*5dd36a3bSchristos<p>Assigns the integer value. </p> 815*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 816*5dd36a3bSchristos <table class="params"> 817*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer item </td></tr> 818*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to assign. For negative integer, the logical value is <code>-value - 1</code> </td></tr> 819*5dd36a3bSchristos </table> 820*5dd36a3bSchristos </dd> 821*5dd36a3bSchristos</dl> 822*5dd36a3bSchristos 823*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00078">78</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 824*5dd36a3bSchristos 825*5dd36a3bSchristos</div> 826*5dd36a3bSchristos</div> 827*5dd36a3bSchristos<a id="a62e9cd557438c1a5b8cf9a29c1f64baa"></a> 828*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a62e9cd557438c1a5b8cf9a29c1f64baa">§ </a></span>cbor_set_uint8()</h2> 829*5dd36a3bSchristos 830*5dd36a3bSchristos<div class="memitem"> 831*5dd36a3bSchristos<div class="memproto"> 832*5dd36a3bSchristos <table class="memname"> 833*5dd36a3bSchristos <tr> 834*5dd36a3bSchristos <td class="memname">void cbor_set_uint8 </td> 835*5dd36a3bSchristos <td>(</td> 836*5dd36a3bSchristos <td class="paramtype"><a class="el" href="structcbor__item__t.html">cbor_item_t</a> * </td> 837*5dd36a3bSchristos <td class="paramname"><em>item</em>, </td> 838*5dd36a3bSchristos </tr> 839*5dd36a3bSchristos <tr> 840*5dd36a3bSchristos <td class="paramkey"></td> 841*5dd36a3bSchristos <td></td> 842*5dd36a3bSchristos <td class="paramtype">uint8_t </td> 843*5dd36a3bSchristos <td class="paramname"><em>value</em> </td> 844*5dd36a3bSchristos </tr> 845*5dd36a3bSchristos <tr> 846*5dd36a3bSchristos <td></td> 847*5dd36a3bSchristos <td>)</td> 848*5dd36a3bSchristos <td></td><td></td> 849*5dd36a3bSchristos </tr> 850*5dd36a3bSchristos </table> 851*5dd36a3bSchristos</div><div class="memdoc"> 852*5dd36a3bSchristos 853*5dd36a3bSchristos<p>Assigns the integer value. </p> 854*5dd36a3bSchristos<dl class="params"><dt>Parameters</dt><dd> 855*5dd36a3bSchristos <table class="params"> 856*5dd36a3bSchristos <tr><td class="paramname">item[borrow]</td><td>positive or negative integer item </td></tr> 857*5dd36a3bSchristos <tr><td class="paramname">value</td><td>the value to assign. For negative integer, the logical value is <code>-value - 1</code> </td></tr> 858*5dd36a3bSchristos </table> 859*5dd36a3bSchristos </dd> 860*5dd36a3bSchristos</dl> 861*5dd36a3bSchristos 862*5dd36a3bSchristos<p>Definition at line <a class="el" href="ints_8c_source.html#l00056">56</a> of file <a class="el" href="ints_8c_source.html">ints.c</a>.</p> 863*5dd36a3bSchristos 864*5dd36a3bSchristos</div> 865*5dd36a3bSchristos</div> 866*5dd36a3bSchristos</div><!-- contents --> 867*5dd36a3bSchristos<!-- start footer part --> 868*5dd36a3bSchristos<hr class="footer"/><address class="footer"><small> 869*5dd36a3bSchristosGenerated on Mon Feb 6 2017 00:26:19 for libcbor by  <a href="http://www.doxygen.org/index.html"> 870*5dd36a3bSchristos<img class="footer" src="doxygen.png" alt="doxygen"/> 871*5dd36a3bSchristos</a> 1.8.12 872*5dd36a3bSchristos</small></address> 873*5dd36a3bSchristos</body> 874*5dd36a3bSchristos</html> 875