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/internal/encoders.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  <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><li class="navelem"><a class="el" href="dir_3ebe94c85f6786bf802771098c1d09bb.html">internal</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">encoders.h File Reference</div> </div> 72*5dd36a3bSchristos</div><!--header--> 73*5dd36a3bSchristos<div class="contents"> 74*5dd36a3bSchristos<div class="textblock"><code>#include "<a class="el" href="common_8h_source.html">cbor/common.h</a>"</code><br /> 75*5dd36a3bSchristos</div> 76*5dd36a3bSchristos<p><a href="encoders_8h_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:a32eb27ea8f535e166b40c7be50ab8eb1"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="encoders_8h.html#a32eb27ea8f535e166b40c7be50ab8eb1">_cbor_encode_uint8</a> (uint8_t value, unsigned char *buffer, size_t buffer_size, uint8_t offset)</td></tr> 81*5dd36a3bSchristos<tr class="separator:a32eb27ea8f535e166b40c7be50ab8eb1"><td class="memSeparator" colspan="2"> </td></tr> 82*5dd36a3bSchristos<tr class="memitem:a18c7f670aae9fa3f03a2ba58e6590c43"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="encoders_8h.html#a18c7f670aae9fa3f03a2ba58e6590c43">_cbor_encode_uint16</a> (uint16_t value, unsigned char *buffer, size_t buffer_size, uint8_t offset)</td></tr> 83*5dd36a3bSchristos<tr class="separator:a18c7f670aae9fa3f03a2ba58e6590c43"><td class="memSeparator" colspan="2"> </td></tr> 84*5dd36a3bSchristos<tr class="memitem:a58efe8377be9b98013828ed27752e212"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="encoders_8h.html#a58efe8377be9b98013828ed27752e212">_cbor_encode_uint32</a> (uint32_t value, unsigned char *buffer, size_t buffer_size, uint8_t offset)</td></tr> 85*5dd36a3bSchristos<tr class="separator:a58efe8377be9b98013828ed27752e212"><td class="memSeparator" colspan="2"> </td></tr> 86*5dd36a3bSchristos<tr class="memitem:a6770d92d21edd8100cfd48ab443fc566"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="encoders_8h.html#a6770d92d21edd8100cfd48ab443fc566">_cbor_encode_uint64</a> (uint64_t value, unsigned char *buffer, size_t buffer_size, uint8_t offset)</td></tr> 87*5dd36a3bSchristos<tr class="separator:a6770d92d21edd8100cfd48ab443fc566"><td class="memSeparator" colspan="2"> </td></tr> 88*5dd36a3bSchristos<tr class="memitem:ad0b03bdce1727977d8c8307e2a91590a"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="encoders_8h.html#ad0b03bdce1727977d8c8307e2a91590a">_cbor_encode_uint</a> (uint64_t value, unsigned char *buffer, size_t buffer_size, uint8_t offset)</td></tr> 89*5dd36a3bSchristos<tr class="separator:ad0b03bdce1727977d8c8307e2a91590a"><td class="memSeparator" colspan="2"> </td></tr> 90*5dd36a3bSchristos</table> 91*5dd36a3bSchristos<h2 class="groupheader">Function Documentation</h2> 92*5dd36a3bSchristos<a id="ad0b03bdce1727977d8c8307e2a91590a"></a> 93*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#ad0b03bdce1727977d8c8307e2a91590a">§ </a></span>_cbor_encode_uint()</h2> 94*5dd36a3bSchristos 95*5dd36a3bSchristos<div class="memitem"> 96*5dd36a3bSchristos<div class="memproto"> 97*5dd36a3bSchristos <table class="memname"> 98*5dd36a3bSchristos <tr> 99*5dd36a3bSchristos <td class="memname">size_t _cbor_encode_uint </td> 100*5dd36a3bSchristos <td>(</td> 101*5dd36a3bSchristos <td class="paramtype">uint64_t </td> 102*5dd36a3bSchristos <td class="paramname"><em>value</em>, </td> 103*5dd36a3bSchristos </tr> 104*5dd36a3bSchristos <tr> 105*5dd36a3bSchristos <td class="paramkey"></td> 106*5dd36a3bSchristos <td></td> 107*5dd36a3bSchristos <td class="paramtype">unsigned char * </td> 108*5dd36a3bSchristos <td class="paramname"><em>buffer</em>, </td> 109*5dd36a3bSchristos </tr> 110*5dd36a3bSchristos <tr> 111*5dd36a3bSchristos <td class="paramkey"></td> 112*5dd36a3bSchristos <td></td> 113*5dd36a3bSchristos <td class="paramtype">size_t </td> 114*5dd36a3bSchristos <td class="paramname"><em>buffer_size</em>, </td> 115*5dd36a3bSchristos </tr> 116*5dd36a3bSchristos <tr> 117*5dd36a3bSchristos <td class="paramkey"></td> 118*5dd36a3bSchristos <td></td> 119*5dd36a3bSchristos <td class="paramtype">uint8_t </td> 120*5dd36a3bSchristos <td class="paramname"><em>offset</em> </td> 121*5dd36a3bSchristos </tr> 122*5dd36a3bSchristos <tr> 123*5dd36a3bSchristos <td></td> 124*5dd36a3bSchristos <td>)</td> 125*5dd36a3bSchristos <td></td><td></td> 126*5dd36a3bSchristos </tr> 127*5dd36a3bSchristos </table> 128*5dd36a3bSchristos</div><div class="memdoc"> 129*5dd36a3bSchristos 130*5dd36a3bSchristos<p>Definition at line <a class="el" href="encoders_8c_source.html#l00102">102</a> of file <a class="el" href="encoders_8c_source.html">encoders.c</a>.</p> 131*5dd36a3bSchristos 132*5dd36a3bSchristos</div> 133*5dd36a3bSchristos</div> 134*5dd36a3bSchristos<a id="a18c7f670aae9fa3f03a2ba58e6590c43"></a> 135*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a18c7f670aae9fa3f03a2ba58e6590c43">§ </a></span>_cbor_encode_uint16()</h2> 136*5dd36a3bSchristos 137*5dd36a3bSchristos<div class="memitem"> 138*5dd36a3bSchristos<div class="memproto"> 139*5dd36a3bSchristos <table class="memname"> 140*5dd36a3bSchristos <tr> 141*5dd36a3bSchristos <td class="memname">size_t _cbor_encode_uint16 </td> 142*5dd36a3bSchristos <td>(</td> 143*5dd36a3bSchristos <td class="paramtype">uint16_t </td> 144*5dd36a3bSchristos <td class="paramname"><em>value</em>, </td> 145*5dd36a3bSchristos </tr> 146*5dd36a3bSchristos <tr> 147*5dd36a3bSchristos <td class="paramkey"></td> 148*5dd36a3bSchristos <td></td> 149*5dd36a3bSchristos <td class="paramtype">unsigned char * </td> 150*5dd36a3bSchristos <td class="paramname"><em>buffer</em>, </td> 151*5dd36a3bSchristos </tr> 152*5dd36a3bSchristos <tr> 153*5dd36a3bSchristos <td class="paramkey"></td> 154*5dd36a3bSchristos <td></td> 155*5dd36a3bSchristos <td class="paramtype">size_t </td> 156*5dd36a3bSchristos <td class="paramname"><em>buffer_size</em>, </td> 157*5dd36a3bSchristos </tr> 158*5dd36a3bSchristos <tr> 159*5dd36a3bSchristos <td class="paramkey"></td> 160*5dd36a3bSchristos <td></td> 161*5dd36a3bSchristos <td class="paramtype">uint8_t </td> 162*5dd36a3bSchristos <td class="paramname"><em>offset</em> </td> 163*5dd36a3bSchristos </tr> 164*5dd36a3bSchristos <tr> 165*5dd36a3bSchristos <td></td> 166*5dd36a3bSchristos <td>)</td> 167*5dd36a3bSchristos <td></td><td></td> 168*5dd36a3bSchristos </tr> 169*5dd36a3bSchristos </table> 170*5dd36a3bSchristos</div><div class="memdoc"> 171*5dd36a3bSchristos 172*5dd36a3bSchristos<p>Definition at line <a class="el" href="encoders_8c_source.html#l00031">31</a> of file <a class="el" href="encoders_8c_source.html">encoders.c</a>.</p> 173*5dd36a3bSchristos 174*5dd36a3bSchristos</div> 175*5dd36a3bSchristos</div> 176*5dd36a3bSchristos<a id="a58efe8377be9b98013828ed27752e212"></a> 177*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a58efe8377be9b98013828ed27752e212">§ </a></span>_cbor_encode_uint32()</h2> 178*5dd36a3bSchristos 179*5dd36a3bSchristos<div class="memitem"> 180*5dd36a3bSchristos<div class="memproto"> 181*5dd36a3bSchristos <table class="memname"> 182*5dd36a3bSchristos <tr> 183*5dd36a3bSchristos <td class="memname">size_t _cbor_encode_uint32 </td> 184*5dd36a3bSchristos <td>(</td> 185*5dd36a3bSchristos <td class="paramtype">uint32_t </td> 186*5dd36a3bSchristos <td class="paramname"><em>value</em>, </td> 187*5dd36a3bSchristos </tr> 188*5dd36a3bSchristos <tr> 189*5dd36a3bSchristos <td class="paramkey"></td> 190*5dd36a3bSchristos <td></td> 191*5dd36a3bSchristos <td class="paramtype">unsigned char * </td> 192*5dd36a3bSchristos <td class="paramname"><em>buffer</em>, </td> 193*5dd36a3bSchristos </tr> 194*5dd36a3bSchristos <tr> 195*5dd36a3bSchristos <td class="paramkey"></td> 196*5dd36a3bSchristos <td></td> 197*5dd36a3bSchristos <td class="paramtype">size_t </td> 198*5dd36a3bSchristos <td class="paramname"><em>buffer_size</em>, </td> 199*5dd36a3bSchristos </tr> 200*5dd36a3bSchristos <tr> 201*5dd36a3bSchristos <td class="paramkey"></td> 202*5dd36a3bSchristos <td></td> 203*5dd36a3bSchristos <td class="paramtype">uint8_t </td> 204*5dd36a3bSchristos <td class="paramname"><em>offset</em> </td> 205*5dd36a3bSchristos </tr> 206*5dd36a3bSchristos <tr> 207*5dd36a3bSchristos <td></td> 208*5dd36a3bSchristos <td>)</td> 209*5dd36a3bSchristos <td></td><td></td> 210*5dd36a3bSchristos </tr> 211*5dd36a3bSchristos </table> 212*5dd36a3bSchristos</div><div class="memdoc"> 213*5dd36a3bSchristos 214*5dd36a3bSchristos<p>Definition at line <a class="el" href="encoders_8c_source.html#l00052">52</a> of file <a class="el" href="encoders_8c_source.html">encoders.c</a>.</p> 215*5dd36a3bSchristos 216*5dd36a3bSchristos</div> 217*5dd36a3bSchristos</div> 218*5dd36a3bSchristos<a id="a6770d92d21edd8100cfd48ab443fc566"></a> 219*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a6770d92d21edd8100cfd48ab443fc566">§ </a></span>_cbor_encode_uint64()</h2> 220*5dd36a3bSchristos 221*5dd36a3bSchristos<div class="memitem"> 222*5dd36a3bSchristos<div class="memproto"> 223*5dd36a3bSchristos <table class="memname"> 224*5dd36a3bSchristos <tr> 225*5dd36a3bSchristos <td class="memname">size_t _cbor_encode_uint64 </td> 226*5dd36a3bSchristos <td>(</td> 227*5dd36a3bSchristos <td class="paramtype">uint64_t </td> 228*5dd36a3bSchristos <td class="paramname"><em>value</em>, </td> 229*5dd36a3bSchristos </tr> 230*5dd36a3bSchristos <tr> 231*5dd36a3bSchristos <td class="paramkey"></td> 232*5dd36a3bSchristos <td></td> 233*5dd36a3bSchristos <td class="paramtype">unsigned char * </td> 234*5dd36a3bSchristos <td class="paramname"><em>buffer</em>, </td> 235*5dd36a3bSchristos </tr> 236*5dd36a3bSchristos <tr> 237*5dd36a3bSchristos <td class="paramkey"></td> 238*5dd36a3bSchristos <td></td> 239*5dd36a3bSchristos <td class="paramtype">size_t </td> 240*5dd36a3bSchristos <td class="paramname"><em>buffer_size</em>, </td> 241*5dd36a3bSchristos </tr> 242*5dd36a3bSchristos <tr> 243*5dd36a3bSchristos <td class="paramkey"></td> 244*5dd36a3bSchristos <td></td> 245*5dd36a3bSchristos <td class="paramtype">uint8_t </td> 246*5dd36a3bSchristos <td class="paramname"><em>offset</em> </td> 247*5dd36a3bSchristos </tr> 248*5dd36a3bSchristos <tr> 249*5dd36a3bSchristos <td></td> 250*5dd36a3bSchristos <td>)</td> 251*5dd36a3bSchristos <td></td><td></td> 252*5dd36a3bSchristos </tr> 253*5dd36a3bSchristos </table> 254*5dd36a3bSchristos</div><div class="memdoc"> 255*5dd36a3bSchristos 256*5dd36a3bSchristos<p>Definition at line <a class="el" href="encoders_8c_source.html#l00075">75</a> of file <a class="el" href="encoders_8c_source.html">encoders.c</a>.</p> 257*5dd36a3bSchristos 258*5dd36a3bSchristos</div> 259*5dd36a3bSchristos</div> 260*5dd36a3bSchristos<a id="a32eb27ea8f535e166b40c7be50ab8eb1"></a> 261*5dd36a3bSchristos<h2 class="memtitle"><span class="permalink"><a href="#a32eb27ea8f535e166b40c7be50ab8eb1">§ </a></span>_cbor_encode_uint8()</h2> 262*5dd36a3bSchristos 263*5dd36a3bSchristos<div class="memitem"> 264*5dd36a3bSchristos<div class="memproto"> 265*5dd36a3bSchristos <table class="memname"> 266*5dd36a3bSchristos <tr> 267*5dd36a3bSchristos <td class="memname">size_t _cbor_encode_uint8 </td> 268*5dd36a3bSchristos <td>(</td> 269*5dd36a3bSchristos <td class="paramtype">uint8_t </td> 270*5dd36a3bSchristos <td class="paramname"><em>value</em>, </td> 271*5dd36a3bSchristos </tr> 272*5dd36a3bSchristos <tr> 273*5dd36a3bSchristos <td class="paramkey"></td> 274*5dd36a3bSchristos <td></td> 275*5dd36a3bSchristos <td class="paramtype">unsigned char * </td> 276*5dd36a3bSchristos <td class="paramname"><em>buffer</em>, </td> 277*5dd36a3bSchristos </tr> 278*5dd36a3bSchristos <tr> 279*5dd36a3bSchristos <td class="paramkey"></td> 280*5dd36a3bSchristos <td></td> 281*5dd36a3bSchristos <td class="paramtype">size_t </td> 282*5dd36a3bSchristos <td class="paramname"><em>buffer_size</em>, </td> 283*5dd36a3bSchristos </tr> 284*5dd36a3bSchristos <tr> 285*5dd36a3bSchristos <td class="paramkey"></td> 286*5dd36a3bSchristos <td></td> 287*5dd36a3bSchristos <td class="paramtype">uint8_t </td> 288*5dd36a3bSchristos <td class="paramname"><em>offset</em> </td> 289*5dd36a3bSchristos </tr> 290*5dd36a3bSchristos <tr> 291*5dd36a3bSchristos <td></td> 292*5dd36a3bSchristos <td>)</td> 293*5dd36a3bSchristos <td></td><td></td> 294*5dd36a3bSchristos </tr> 295*5dd36a3bSchristos </table> 296*5dd36a3bSchristos</div><div class="memdoc"> 297*5dd36a3bSchristos 298*5dd36a3bSchristos<p>Definition at line <a class="el" href="encoders_8c_source.html#l00014">14</a> of file <a class="el" href="encoders_8c_source.html">encoders.c</a>.</p> 299*5dd36a3bSchristos 300*5dd36a3bSchristos</div> 301*5dd36a3bSchristos</div> 302*5dd36a3bSchristos</div><!-- contents --> 303*5dd36a3bSchristos<!-- start footer part --> 304*5dd36a3bSchristos<hr class="footer"/><address class="footer"><small> 305*5dd36a3bSchristosGenerated on Mon Feb 6 2017 00:26:19 for libcbor by  <a href="http://www.doxygen.org/index.html"> 306*5dd36a3bSchristos<img class="footer" src="doxygen.png" alt="doxygen"/> 307*5dd36a3bSchristos</a> 1.8.12 308*5dd36a3bSchristos</small></address> 309*5dd36a3bSchristos</body> 310*5dd36a3bSchristos</html> 311