<!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/internal/builder_callbacks.c 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><li class="navelem"><a class="el" href="dir_3ebe94c85f6786bf802771098c1d09bb.html">internal</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">builder_callbacks.c</div> </div>
</div><!--header-->
<div class="contents">
<a href="builder__callbacks_8c.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">#include "<a class="code" href="builder__callbacks_8h.html">builder_callbacks.h</a>"</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="unicode_8h.html">unicode.h</a>"</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <string.h></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "../arrays.h"</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "../bytestrings.h"</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "../floats_ctrls.h"</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "../ints.h"</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "../maps.h"</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "../strings.h"</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "../tags.h"</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c"> 19</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(<a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item, <span class="keyword">struct</span> <a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx)</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordflow">if</span> (ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#aab7d9aefcd1c46603350a1d009c048d8">size</a> == 0) {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="comment">/* Top level item */</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#ad4c1540245b6241bc7aa3f7ade2fbf5a">root</a> = item;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="comment">/* Part of a bigger structure */</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordflow">switch</span> (ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>-><a class="code" href="structcbor__item__t.html#a6743a75cf89e1b455ddf3198ff98842a">type</a>) {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">case</span> <a class="code" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6ae48b04b3538ade49d7eae9ee6b656103">CBOR_TYPE_ARRAY</a>: {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">if</span> (<a class="code" href="arrays_8c.html#ac2f1480c546a0268e8b046b365e58599">cbor_array_is_definite</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>)) {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  assert(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a9b69c0ea00da449b080343a97c026cef">subitems</a> > 0);</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="arrays_8c.html#abb1c1c9731a2195857dc471f2a6f60f5">cbor_array_push</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>, item);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a9b69c0ea00da449b080343a97c026cef">subitems</a>--;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">if</span> (ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a9b69c0ea00da449b080343a97c026cef">subitems</a> == 0) {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item = ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="stack_8c.html#a6541672c7a6bcc55e6645cff2a5ab005">_cbor_stack_pop</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(item, ctx);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  }</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="common_8c.html#aedbe700f2241de4282aedaae017e0de9">cbor_decref</a>(&item);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">/* Indefinite array, don't bother with subitems */</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="arrays_8c.html#abb1c1c9731a2195857dc471f2a6f60f5">cbor_array_push</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>, item);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="common_8c.html#aedbe700f2241de4282aedaae017e0de9">cbor_decref</a>(&item);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">case</span> <a class="code" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6a057fc3133cb4465f9eb734acfd195db2">CBOR_TYPE_MAP</a>: {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment">/* We use 0 and 1 subitems to distinguish between keys and values in indefinite items */</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">if</span> (ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a9b69c0ea00da449b080343a97c026cef">subitems</a> % 2) {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="comment">/* Odd record, this is a value */</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="maps_8c.html#abb15486eebcd1c41c373613757505705">_cbor_map_add_value</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>, <a class="code" href="common_8c.html#a327dce45c1cb680953555290dba8e35b">cbor_move</a>(item));</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="comment">/* Even record, this is a key */</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="maps_8c.html#a64c91e7ecba7cf7d0d4949153d681db8">_cbor_map_add_key</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>, <a class="code" href="common_8c.html#a327dce45c1cb680953555290dba8e35b">cbor_move</a>(item));</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">if</span> (<a class="code" href="maps_8c.html#a0dccaa76ac293bb5a11dbca6d16f6253">cbor_map_is_definite</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>)) {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a9b69c0ea00da449b080343a97c026cef">subitems</a>--;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">if</span> (ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a9b69c0ea00da449b080343a97c026cef">subitems</a> == 0) {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item = ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="stack_8c.html#a6541672c7a6bcc55e6645cff2a5ab005">_cbor_stack_pop</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(item, ctx);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a9b69c0ea00da449b080343a97c026cef">subitems</a> ^= 1; <span class="comment">/* Flip the indicator for indefinite items */</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  }</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">case</span> <a class="code" href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6a16f0eaf29eeea66fe37ec1ed0fa45415">CBOR_TYPE_TAG</a>: {</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  assert(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a9b69c0ea00da449b080343a97c026cef">subitems</a> == 1);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="tags_8c.html#a4e6dc4f4fda5889819713bd3957de3c6">cbor_tag_set_item</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>, item);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="common_8c.html#aedbe700f2241de4282aedaae017e0de9">cbor_decref</a>(&item); <span class="comment">/* Give up on our reference */</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item = ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="stack_8c.html#a6541672c7a6bcc55e6645cff2a5ab005">_cbor_stack_pop</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(item, ctx);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">default</span>: {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="common_8c.html#aedbe700f2241de4282aedaae017e0de9">cbor_decref</a>(&item);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#ae34e7cc9b435a63bc0e92c425279db84">syntax_error</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  }</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102"> 84</a></span> <span class="preprocessor">#define CHECK_RES do { if (res == NULL) { ctx->creation_failed = true; return; } } while (0)</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a98b2405c0f8f7574df6f1b974d8e1e33"> 86</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#aa3cd19f25b7f29ddcd153e30b2e09824">cbor_builder_uint8_callback</a>(<span class="keywordtype">void</span> *context, uint8_t value)</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="ints_8c.html#ae4562e1314b122ae89712dbf0c48c14c">cbor_new_int8</a>();</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="ints_8c.html#aed6a5a44245b8447a768c95e351c2c0c">cbor_mark_uint</a>(res);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="ints_8c.html#a62e9cd557438c1a5b8cf9a29c1f64baa">cbor_set_uint8</a>(res, value);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> }</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#ae480def467a853de4da395b83583c364"> 96</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a8cac42a8aeaf19f532ccc5c21e851e8c">cbor_builder_uint16_callback</a>(<span class="keywordtype">void</span> *context, uint16_t value)</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> {</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="ints_8c.html#a68f71f9574e0085f02a27bd0f58d4b55">cbor_new_int16</a>();</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="ints_8c.html#aed6a5a44245b8447a768c95e351c2c0c">cbor_mark_uint</a>(res);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="ints_8c.html#a13b3dff419830b59c77ee18d4c03f6eb">cbor_set_uint16</a>(res, value);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> }</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a926c3b93cb1745fe7fa4bb0adf5896f7"> 106</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a69e152b1c2523502456301f878b07c49">cbor_builder_uint32_callback</a>(<span class="keywordtype">void</span> *context, uint32_t value)</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> {</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="ints_8c.html#a9cf9db24315a0e622746a546cc112467">cbor_new_int32</a>();</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="ints_8c.html#aed6a5a44245b8447a768c95e351c2c0c">cbor_mark_uint</a>(res);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="ints_8c.html#a2db697fb733dcbdbbef8714fd182a185">cbor_set_uint32</a>(res, value);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> }</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#afbff23673e4980d9bafd0a2b61934a33"> 116</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a119060abe3c5b1d936514063ca4db22e">cbor_builder_uint64_callback</a>(<span class="keywordtype">void</span> *context, uint64_t value)</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> {</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="ints_8c.html#ab863f47b9de930c5d014e0dbb5523d9d">cbor_new_int64</a>();</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="ints_8c.html#aed6a5a44245b8447a768c95e351c2c0c">cbor_mark_uint</a>(res);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="ints_8c.html#af82a3961109f2a36324157e218680016">cbor_set_uint64</a>(res, value);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a0d95d98def615e7f4ea10cb680d2fadd"> 126</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a9b1fada71e0c9cbc90ed6089ffc45958">cbor_builder_negint8_callback</a>(<span class="keywordtype">void</span> *context, uint8_t value)</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="ints_8c.html#ae4562e1314b122ae89712dbf0c48c14c">cbor_new_int8</a>();</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="ints_8c.html#a6ef24d3e2636c02de092fdfc337276b1">cbor_mark_negint</a>(res);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="ints_8c.html#a62e9cd557438c1a5b8cf9a29c1f64baa">cbor_set_uint8</a>(res, value);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> }</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a05a3b8a63bd44609664ba1480058aeef"> 136</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a355c63dd0e941d9f3bc18b95876d7b39">cbor_builder_negint16_callback</a>(<span class="keywordtype">void</span> *context, uint16_t value)</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> {</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</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> *res = <a class="code" href="ints_8c.html#a68f71f9574e0085f02a27bd0f58d4b55">cbor_new_int16</a>();</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="ints_8c.html#a6ef24d3e2636c02de092fdfc337276b1">cbor_mark_negint</a>(res);</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="ints_8c.html#a13b3dff419830b59c77ee18d4c03f6eb">cbor_set_uint16</a>(res, value);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> }</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#af2c80ac4543ac875b84b8eb8c619ce4a"> 145</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a4b0a2d222bc823bb88f9b8ba38e00f05">cbor_builder_negint32_callback</a>(<span class="keywordtype">void</span> *context, uint32_t value)</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="ints_8c.html#a9cf9db24315a0e622746a546cc112467">cbor_new_int32</a>();</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="ints_8c.html#a6ef24d3e2636c02de092fdfc337276b1">cbor_mark_negint</a>(res);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="ints_8c.html#a2db697fb733dcbdbbef8714fd182a185">cbor_set_uint32</a>(res, value);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> }</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#aa92b23a8c36df6157fde447a58241f8d"> 155</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#ab99cc7da548fd54ed22a6c988be037ae">cbor_builder_negint64_callback</a>(<span class="keywordtype">void</span> *context, uint64_t value)</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="ints_8c.html#ab863f47b9de930c5d014e0dbb5523d9d">cbor_new_int64</a>();</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="ints_8c.html#a6ef24d3e2636c02de092fdfc337276b1">cbor_mark_negint</a>(res);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="ints_8c.html#af82a3961109f2a36324157e218680016">cbor_set_uint64</a>(res, value);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> }</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#ae3487b745fc400f6ca145d09b475cc22"> 165</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a41f2a1f66f9cb53dd0075e88f0b640fb">cbor_builder_byte_string_callback</a>(<span class="keywordtype">void</span> *context, <a class="code" href="data_8h.html#a121c5944682215e742475f12f07c0a72">cbor_data</a> data, <span class="keywordtype">size_t</span> length)</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> {</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *new_handle = <a class="code" href="common_8h.html#a07a781e9212fad361b0f59f7fc921057">_CBOR_MALLOC</a>(length);</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">if</span> (new_handle == NULL) {</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#ada14322afd080c27f3ea76b3ba657505">creation_failed</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  }</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  memcpy(new_handle, data, length);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="bytestrings_8c.html#a86fc646f4520b90c85a704d27b46e69e">cbor_new_definite_bytestring</a>();</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">if</span> (res == NULL) {</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="common_8h.html#a1300043d7db8adf6ab67f7b787f14635">_CBOR_FREE</a>(new_handle);</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#ada14322afd080c27f3ea76b3ba657505">creation_failed</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  }</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <a class="code" href="bytestrings_8c.html#a513fd06374cb4faa9e909c85e4248199">cbor_bytestring_set_handle</a>(res, new_handle, length);</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">if</span> (ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#aab7d9aefcd1c46603350a1d009c048d8">size</a> > 0 && <a class="code" href="common_8c.html#adedaf37527b8d8261e287a0001e5a190">cbor_isa_bytestring</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>)) {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordflow">if</span> (<a class="code" href="bytestrings_8c.html#a3a6c450f105bb18b6b56d20f0de4786a">cbor_bytestring_is_indefinite</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>)) {</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <a class="code" href="bytestrings_8c.html#a5dc8c27d6e7acfdd05fdc15c01e25b47">cbor_bytestring_add_chunk</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>, <a class="code" href="common_8c.html#a327dce45c1cb680953555290dba8e35b">cbor_move</a>(res));</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <a class="code" href="common_8c.html#aedbe700f2241de4282aedaae017e0de9">cbor_decref</a>(&res);</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#ae34e7cc9b435a63bc0e92c425279db84">syntax_error</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  }</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> }</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a50acadf2240a3b6badcb11e05aff3a47"> 197</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a1c0c98b6c27ac737123ecb014cb6e9c7">cbor_builder_byte_string_start_callback</a>(<span class="keywordtype">void</span> *context)</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="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="bytestrings_8c.html#a6de9d6387e856c33d2ef8e8e9fdac0ac">cbor_new_indefinite_bytestring</a>();</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="stack_8c.html#abb0f169980a61710ee2b83ac90df3442">_cbor_stack_push</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>, res, 0);</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> }</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a0752a26117a4ac11a0b31969185774c9"> 206</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#aa10a165cd945c03ad09ae0866287f6bd">cbor_builder_string_callback</a>(<span class="keywordtype">void</span> *context, <a class="code" href="data_8h.html#a121c5944682215e742475f12f07c0a72">cbor_data</a> data, <span class="keywordtype">size_t</span> length)</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> {</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__unicode__status.html">_cbor_unicode_status</a> unicode_status;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordtype">size_t</span> codepoint_count = <a class="code" href="unicode_8c.html#ade9ebfe3d9b9bfad4c9fd5c158d519a8">_cbor_unicode_codepoint_count</a>(data, length, &unicode_status);</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keywordflow">if</span> (unicode_status.<a class="code" href="struct__cbor__unicode__status.html#a06b8c4d673a659a046aa3adea53cdef8">status</a> == <a class="code" href="unicode_8h.html#a5f58283b505b6cc8a5646516ae20831fa7ddb42c4f16ebd6d46fe1e331c643c8b">_CBOR_UNICODE_BADCP</a>) {</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#ae34e7cc9b435a63bc0e92c425279db84">syntax_error</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  }</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *new_handle = <a class="code" href="common_8h.html#a07a781e9212fad361b0f59f7fc921057">_CBOR_MALLOC</a>(length);</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordflow">if</span> (new_handle == NULL) {</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#ada14322afd080c27f3ea76b3ba657505">creation_failed</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  }</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  memcpy(new_handle, data, length);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="strings_8c.html#a6e2516983e412b9d22fd1fccbeded632">cbor_new_definite_string</a>();</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <a class="code" href="strings_8c.html#a5e9292c04df380f2c775fe599511a7ab">cbor_string_set_handle</a>(res, new_handle, length);</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  res-><a class="code" href="structcbor__item__t.html#a7d97fa5cdf027ca0499c37ec19acf843">metadata</a>.<a class="code" href="unioncbor__item__metadata.html#a753eccc4105c3861dd40f50681ff18df">string_metadata</a>.<a class="code" href="struct__cbor__string__metadata.html#a07f2e49bd1cd40ba2277ae6d7a9b6d5d">codepoint_count</a> = codepoint_count;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="comment">/* Careful here: order matters */</span></div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keywordflow">if</span> (ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#aab7d9aefcd1c46603350a1d009c048d8">size</a> > 0 && <a class="code" href="common_8c.html#a02edd93bb8eab83bc2b8f8bf5d7d1335">cbor_isa_string</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>)) {</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">if</span> (<a class="code" href="strings_8c.html#aa1a92438a04ae77beea9a17910805530">cbor_string_is_indefinite</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>)) {</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <a class="code" href="strings_8c.html#a634462c7237298a196413cd62d7d1877">cbor_string_add_chunk</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>, <a class="code" href="common_8c.html#a327dce45c1cb680953555290dba8e35b">cbor_move</a>(res));</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <a class="code" href="common_8c.html#aedbe700f2241de4282aedaae017e0de9">cbor_decref</a>(&res);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  ctx-><a class="code" href="struct__cbor__decoder__context.html#ae34e7cc9b435a63bc0e92c425279db84">syntax_error</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  }</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  }</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> }</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> </div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a6ad59b5991aeeb560d2984abc85f1240"> 243</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a269aa36265c6fb1b18cad2a14cf355a0">cbor_builder_string_start_callback</a>(<span class="keywordtype">void</span> *context)</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> {</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="strings_8c.html#a226f91c7bfd6be9b0a52cdc6f0b17741">cbor_new_indefinite_string</a>();</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <a class="code" href="stack_8c.html#abb0f169980a61710ee2b83ac90df3442">_cbor_stack_push</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>, res, 0);</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> }</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div><div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a0840fe5d84881527b514d7d3049c3079"> 251</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a2dd24b9dcda84915c4fc0229a6e52df6">cbor_builder_array_start_callback</a>(<span class="keywordtype">void</span> *context, <span class="keywordtype">size_t</span> size)</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> {</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="arrays_8c.html#a93d7c18019000d5e206a81a4cca70631">cbor_new_definite_array</a>(size);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keywordflow">if</span> (size > 0) {</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="code" href="stack_8c.html#abb0f169980a61710ee2b83ac90df3442">_cbor_stack_push</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>, res, size);</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  }</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> }</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> </div><div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a59c682fb50d074458ab1e12328aed401"> 263</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a7bcc936cb1cc653551de3d5b49fbe3f0">cbor_builder_indef_array_start_callback</a>(<span class="keywordtype">void</span> *context)</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> {</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="arrays_8c.html#aaec916ccc6f19782b6aef5ec1da2cc26">cbor_new_indefinite_array</a>();</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <a class="code" href="stack_8c.html#abb0f169980a61710ee2b83ac90df3442">_cbor_stack_push</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>, res, 0);</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> }</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div><div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a6110c00a85a88fc4e7edf6f91bea8f18"> 271</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a28b2dc3b7b96debc8763407308c365ea">cbor_builder_indef_map_start_callback</a>(<span class="keywordtype">void</span> *context)</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> {</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="maps_8c.html#a58ac69227f48815754651e93d15a5051">cbor_new_indefinite_map</a>();</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="stack_8c.html#abb0f169980a61710ee2b83ac90df3442">_cbor_stack_push</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>, res, 0);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> }</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div><div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a683589f26de39eaa69e833084bc74279"> 279</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a95d00fb404804d93ebffdaf607f48a62">cbor_builder_map_start_callback</a>(<span class="keywordtype">void</span> *context, <span class="keywordtype">size_t</span> size)</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> {</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="maps_8c.html#adab3c6ff2e51dcf2637567431cc6e76e">cbor_new_definite_map</a>(size);</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordflow">if</span> (size > 0) {</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <a class="code" href="stack_8c.html#abb0f169980a61710ee2b83ac90df3442">_cbor_stack_push</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>, res, size * 2);</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  }</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> }</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div><div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a76daa00e402ba3b8b6c74dbbfc74b6ed"> 291</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#ae386e2194dd97053acca4c26d6039ff6">cbor_builder_indef_break_callback</a>(<span class="keywordtype">void</span> *context)</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span> {</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordflow">if</span> (ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#aab7d9aefcd1c46603350a1d009c048d8">size</a> == 0) {</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="comment">// TODO complain</span></div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *item = ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>-><a class="code" href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">top</a>-><a class="code" href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">item</a>;</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <a class="code" href="stack_8c.html#a6541672c7a6bcc55e6645cff2a5ab005">_cbor_stack_pop</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>);</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(item, ctx);</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  }</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span> }</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div><div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#ab5c0f9bbfa8796a80c4b1fb666593c28"> 303</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#ae1509582103b87cc5824c30f101f9d76">cbor_builder_float2_callback</a>(<span class="keywordtype">void</span> *context, <span class="keywordtype">float</span> value)</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> {</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="floats__ctrls_8c.html#a1b332d66de1b49f202b257dc1d245c30">cbor_new_float2</a>();</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <a class="code" href="floats__ctrls_8c.html#aa3d3e746446ef643037a4f8838aa5753">cbor_set_float2</a>(res, value);</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span> }</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div><div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a9603c2d5270f21afbefc0c3f15dc037b"> 311</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#aa86c973a7feebd7d4f12cd3014a36293">cbor_builder_float4_callback</a>(<span class="keywordtype">void</span> *context, <span class="keywordtype">float</span> value)</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span> {</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="floats__ctrls_8c.html#af5b06827916da81a32a1d68dd0727bb1">cbor_new_float4</a>();</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <a class="code" href="floats__ctrls_8c.html#a5fe450a0edad9c7f1a888000f74a1085">cbor_set_float4</a>(res, value);</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span> }</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div><div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a34ed1c906cb4d31432466d78cf644524"> 320</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#ac78462da492c7d57dfb90f7aadcadc5e">cbor_builder_float8_callback</a>(<span class="keywordtype">void</span> *context, <span class="keywordtype">double</span> value)</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span> {</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="floats__ctrls_8c.html#a128574918683dbe68c7dd5256e4f6bf3">cbor_new_float8</a>();</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <a class="code" href="floats__ctrls_8c.html#a62a2ed2815d844fd54474f30ebbd0f6f">cbor_set_float8</a>(res, value);</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> }</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span> </div><div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a5be99aad4fcaf9a86e2e583f3584fbd2"> 329</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a54852cd4c120b368d9b9b5cffb622303">cbor_builder_null_callback</a>(<span class="keywordtype">void</span> *context)</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span> {</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="floats__ctrls_8c.html#a480b38bd08feb75b1bc705850595b4ee">cbor_new_null</a>();</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span> }</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span> </div><div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a5eea26b61770e178e2c6b2ec17ecca59"> 337</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a452f42c05cdf422e6526bc0d7cc135dc">cbor_builder_undefined_callback</a>(<span class="keywordtype">void</span> *context)</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span> {</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="floats__ctrls_8c.html#a7d40d18664a72a266ce98030d30a7377">cbor_new_undef</a>();</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> }</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span> </div><div class="line"><a name="l00345"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#ab5d82f6055e7326f892be37e6b4b7916"> 345</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#a1898083345b031539becf70203361860">cbor_builder_boolean_callback</a>(<span class="keywordtype">void</span> *context, <span class="keywordtype">bool</span> value)</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span> {</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="floats__ctrls_8c.html#a5218f8557e64441e9085f6b9478bfd06">cbor_build_bool</a>(value);</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <a class="code" href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a>(res, ctx);</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span> }</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span> </div><div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="builder__callbacks_8h.html#a22b27f58982df6e585ef19a215b0b796"> 353</a></span> <span class="keywordtype">void</span> <a class="code" href="builder__callbacks_8c.html#aa2b3ea257a52e3f002c79ca2740ef6a2">cbor_builder_tag_callback</a>(<span class="keywordtype">void</span> *context, uint64_t value)</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> {</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <span class="keyword">struct </span><a class="code" href="struct__cbor__decoder__context.html">_cbor_decoder_context</a> *ctx = context;</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <a class="code" href="structcbor__item__t.html">cbor_item_t</a> *res = <a class="code" href="tags_8c.html#a54d7cc5a88a8c28cfb41b1f476a6d1e6">cbor_new_tag</a>(value);</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <a class="code" href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a>;</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <a class="code" href="stack_8c.html#abb0f169980a61710ee2b83ac90df3442">_cbor_stack_push</a>(ctx-><a class="code" href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">stack</a>, res, 1);</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span> }</div><div class="ttc" id="unicode_8h_html"><div class="ttname"><a href="unicode_8h.html">unicode.h</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_aa86c973a7feebd7d4f12cd3014a36293"><div class="ttname"><a href="builder__callbacks_8c.html#aa86c973a7feebd7d4f12cd3014a36293">cbor_builder_float4_callback</a></div><div class="ttdeci">void cbor_builder_float4_callback(void *context, float value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00311">builder_callbacks.c:311</a></div></div>
<div class="ttc" id="floats__ctrls_8c_html_a5fe450a0edad9c7f1a888000f74a1085"><div class="ttname"><a href="floats__ctrls_8c.html#a5fe450a0edad9c7f1a888000f74a1085">cbor_set_float4</a></div><div class="ttdeci">void cbor_set_float4(cbor_item_t *item, float value)</div><div class="ttdoc">Assigns a float value. </div><div class="ttdef"><b>Definition:</b> <a href="floats__ctrls_8c_source.html#l00071">floats_ctrls.c:71</a></div></div>
<div class="ttc" id="ints_8c_html_ab863f47b9de930c5d014e0dbb5523d9d"><div class="ttname"><a href="ints_8c.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="floats__ctrls_8c_html_aa3d3e746446ef643037a4f8838aa5753"><div class="ttname"><a href="floats__ctrls_8c.html#aa3d3e746446ef643037a4f8838aa5753">cbor_set_float2</a></div><div class="ttdeci">void cbor_set_float2(cbor_item_t *item, float value)</div><div class="ttdoc">Assigns a float value. </div><div class="ttdef"><b>Definition:</b> <a href="floats__ctrls_8c_source.html#l00064">floats_ctrls.c:64</a></div></div>
<div class="ttc" id="struct__cbor__stack_html_aab7d9aefcd1c46603350a1d009c048d8"><div class="ttname"><a href="struct__cbor__stack.html#aab7d9aefcd1c46603350a1d009c048d8">_cbor_stack::size</a></div><div class="ttdeci">size_t size</div><div class="ttdef"><b>Definition:</b> <a href="stack_8h_source.html#l00027">stack.h:27</a></div></div>
<div class="ttc" id="struct__cbor__stack__record_html_a9b69c0ea00da449b080343a97c026cef"><div class="ttname"><a href="struct__cbor__stack__record.html#a9b69c0ea00da449b080343a97c026cef">_cbor_stack_record::subitems</a></div><div class="ttdeci">size_t subitems</div><div class="ttdef"><b>Definition:</b> <a href="stack_8h_source.html#l00021">stack.h:21</a></div></div>
<div class="ttc" id="struct__cbor__decoder__context_html_ae34e7cc9b435a63bc0e92c425279db84"><div class="ttname"><a href="struct__cbor__decoder__context.html#ae34e7cc9b435a63bc0e92c425279db84">_cbor_decoder_context::syntax_error</a></div><div class="ttdeci">bool syntax_error</div><div class="ttdoc">Stack expectation mismatch. </div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8h_source.html#l00024">builder_callbacks.h:24</a></div></div>
<div class="ttc" id="data_8h_html_a3a931b40fc31b51cccfd1bc3dc5fc5d6a16f0eaf29eeea66fe37ec1ed0fa45415"><div class="ttname"><a href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6a16f0eaf29eeea66fe37ec1ed0fa45415">CBOR_TYPE_TAG</a></div><div class="ttdoc">6 - tags </div><div class="ttdef"><b>Definition:</b> <a href="data_8h_source.html#l00031">data.h:31</a></div></div>
<div class="ttc" id="strings_8c_html_a5e9292c04df380f2c775fe599511a7ab"><div class="ttname"><a href="strings_8c.html#a5e9292c04df380f2c775fe599511a7ab">cbor_string_set_handle</a></div><div class="ttdeci">void cbor_string_set_handle(cbor_item_t *item, cbor_mutable_data CBOR_RESTRICT_POINTER data, size_t length)</div><div class="ttdoc">Set the handle to the underlying string. </div><div class="ttdef"><b>Definition:</b> <a href="strings_8c_source.html#l00059">strings.c:59</a></div></div>
<div class="ttc" id="structcbor__item__t_html_a7d97fa5cdf027ca0499c37ec19acf843"><div class="ttname"><a href="structcbor__item__t.html#a7d97fa5cdf027ca0499c37ec19acf843">cbor_item_t::metadata</a></div><div class="ttdeci">union cbor_item_metadata metadata</div><div class="ttdoc">Discriminated by type. </div><div class="ttdef"><b>Definition:</b> <a href="data_8h_source.html#l00151">data.h:151</a></div></div>
<div class="ttc" id="ints_8c_html_a13b3dff419830b59c77ee18d4c03f6eb"><div class="ttname"><a href="ints_8c.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="builder__callbacks_8c_html_a41f2a1f66f9cb53dd0075e88f0b640fb"><div class="ttname"><a href="builder__callbacks_8c.html#a41f2a1f66f9cb53dd0075e88f0b640fb">cbor_builder_byte_string_callback</a></div><div class="ttdeci">void cbor_builder_byte_string_callback(void *context, cbor_data data, size_t length)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00165">builder_callbacks.c:165</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a69e152b1c2523502456301f878b07c49"><div class="ttname"><a href="builder__callbacks_8c.html#a69e152b1c2523502456301f878b07c49">cbor_builder_uint32_callback</a></div><div class="ttdeci">void cbor_builder_uint32_callback(void *context, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00106">builder_callbacks.c:106</a></div></div>
<div class="ttc" id="ints_8c_html_ae4562e1314b122ae89712dbf0c48c14c"><div class="ttname"><a href="ints_8c.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="bytestrings_8c_html_a6de9d6387e856c33d2ef8e8e9fdac0ac"><div class="ttname"><a href="bytestrings_8c.html#a6de9d6387e856c33d2ef8e8e9fdac0ac">cbor_new_indefinite_bytestring</a></div><div class="ttdeci">cbor_item_t * cbor_new_indefinite_bytestring()</div><div class="ttdoc">Creates a new indefinite byte string. </div><div class="ttdef"><b>Definition:</b> <a href="bytestrings_8c_source.html#l00046">bytestrings.c:46</a></div></div>
<div class="ttc" id="strings_8c_html_a226f91c7bfd6be9b0a52cdc6f0b17741"><div class="ttname"><a href="strings_8c.html#a226f91c7bfd6be9b0a52cdc6f0b17741">cbor_new_indefinite_string</a></div><div class="ttdeci">cbor_item_t * cbor_new_indefinite_string()</div><div class="ttdoc">Creates a new indefinite string. </div><div class="ttdef"><b>Definition:</b> <a href="strings_8c_source.html#l00023">strings.c:23</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_aa3cd19f25b7f29ddcd153e30b2e09824"><div class="ttname"><a href="builder__callbacks_8c.html#aa3cd19f25b7f29ddcd153e30b2e09824">cbor_builder_uint8_callback</a></div><div class="ttdeci">void cbor_builder_uint8_callback(void *context, uint8_t value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00086">builder_callbacks.c:86</a></div></div>
<div class="ttc" id="common_8c_html_aedbe700f2241de4282aedaae017e0de9"><div class="ttname"><a href="common_8c.html#aedbe700f2241de4282aedaae017e0de9">cbor_decref</a></div><div class="ttdeci">void cbor_decref(cbor_item_t **item_ref)</div><div class="ttdoc">Decreases the reference count by one, deallocating the item if needed. </div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00099">common.c:99</a></div></div>
<div class="ttc" id="common_8c_html_a02edd93bb8eab83bc2b8f8bf5d7d1335"><div class="ttname"><a href="common_8c.html#a02edd93bb8eab83bc2b8f8bf5d7d1335">cbor_isa_string</a></div><div class="ttdeci">bool cbor_isa_string(const cbor_item_t *item)</div><div class="ttdoc">Does the item have the appropriate major type? </div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00033">common.c:33</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a119060abe3c5b1d936514063ca4db22e"><div class="ttname"><a href="builder__callbacks_8c.html#a119060abe3c5b1d936514063ca4db22e">cbor_builder_uint64_callback</a></div><div class="ttdeci">void cbor_builder_uint64_callback(void *context, uint64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00116">builder_callbacks.c:116</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_aa2b3ea257a52e3f002c79ca2740ef6a2"><div class="ttname"><a href="builder__callbacks_8c.html#aa2b3ea257a52e3f002c79ca2740ef6a2">cbor_builder_tag_callback</a></div><div class="ttdeci">void cbor_builder_tag_callback(void *context, uint64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00353">builder_callbacks.c:353</a></div></div>
<div class="ttc" id="bytestrings_8c_html_a86fc646f4520b90c85a704d27b46e69e"><div class="ttname"><a href="bytestrings_8c.html#a86fc646f4520b90c85a704d27b46e69e">cbor_new_definite_bytestring</a></div><div class="ttdeci">cbor_item_t * cbor_new_definite_bytestring()</div><div class="ttdoc">Creates a new definite byte string. </div><div class="ttdef"><b>Definition:</b> <a href="bytestrings_8c_source.html#l00035">bytestrings.c:35</a></div></div>
<div class="ttc" id="common_8c_html_adedaf37527b8d8261e287a0001e5a190"><div class="ttname"><a href="common_8c.html#adedaf37527b8d8261e287a0001e5a190">cbor_isa_bytestring</a></div><div class="ttdeci">bool cbor_isa_bytestring(const cbor_item_t *item)</div><div class="ttdoc">Does the item have the appropriate major type? </div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00028">common.c:28</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_ae1509582103b87cc5824c30f101f9d76"><div class="ttname"><a href="builder__callbacks_8c.html#ae1509582103b87cc5824c30f101f9d76">cbor_builder_float2_callback</a></div><div class="ttdeci">void cbor_builder_float2_callback(void *context, float value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00303">builder_callbacks.c:303</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_ae386e2194dd97053acca4c26d6039ff6"><div class="ttname"><a href="builder__callbacks_8c.html#ae386e2194dd97053acca4c26d6039ff6">cbor_builder_indef_break_callback</a></div><div class="ttdeci">void cbor_builder_indef_break_callback(void *context)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00291">builder_callbacks.c:291</a></div></div>
<div class="ttc" id="floats__ctrls_8c_html_a7d40d18664a72a266ce98030d30a7377"><div class="ttname"><a href="floats__ctrls_8c.html#a7d40d18664a72a266ce98030d30a7377">cbor_new_undef</a></div><div class="ttdeci">cbor_item_t * cbor_new_undef()</div><div class="ttdoc">Constructs new under ctrl item. </div><div class="ttdef"><b>Definition:</b> <a href="floats__ctrls_8c_source.html#l00153">floats_ctrls.c:153</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a9b1fada71e0c9cbc90ed6089ffc45958"><div class="ttname"><a href="builder__callbacks_8c.html#a9b1fada71e0c9cbc90ed6089ffc45958">cbor_builder_negint8_callback</a></div><div class="ttdeci">void cbor_builder_negint8_callback(void *context, uint8_t value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00126">builder_callbacks.c:126</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_ac5a5fe93758a82606342a6f5513d1102"><div class="ttname"><a href="builder__callbacks_8c.html#ac5a5fe93758a82606342a6f5513d1102">CHECK_RES</a></div><div class="ttdeci">#define CHECK_RES</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00084">builder_callbacks.c:84</a></div></div>
<div class="ttc" id="bytestrings_8c_html_a3a6c450f105bb18b6b56d20f0de4786a"><div class="ttname"><a href="bytestrings_8c.html#a3a6c450f105bb18b6b56d20f0de4786a">cbor_bytestring_is_indefinite</a></div><div class="ttdeci">bool cbor_bytestring_is_indefinite(const cbor_item_t *item)</div><div class="ttdoc">Is the byte string indefinite? </div><div class="ttdef"><b>Definition:</b> <a href="bytestrings_8c_source.html#l00030">bytestrings.c:30</a></div></div>
<div class="ttc" id="floats__ctrls_8c_html_a5218f8557e64441e9085f6b9478bfd06"><div class="ttname"><a href="floats__ctrls_8c.html#a5218f8557e64441e9085f6b9478bfd06">cbor_build_bool</a></div><div class="ttdeci">cbor_item_t * cbor_build_bool(bool value)</div><div class="ttdoc">Constructs new boolean ctrl item. </div><div class="ttdef"><b>Definition:</b> <a href="floats__ctrls_8c_source.html#l00160">floats_ctrls.c:160</a></div></div>
<div class="ttc" id="data_8h_html_a3a931b40fc31b51cccfd1bc3dc5fc5d6ae48b04b3538ade49d7eae9ee6b656103"><div class="ttname"><a href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6ae48b04b3538ade49d7eae9ee6b656103">CBOR_TYPE_ARRAY</a></div><div class="ttdoc">4 - arrays </div><div class="ttdef"><b>Definition:</b> <a href="data_8h_source.html#l00029">data.h:29</a></div></div>
<div class="ttc" id="tags_8c_html_a54d7cc5a88a8c28cfb41b1f476a6d1e6"><div class="ttname"><a href="tags_8c.html#a54d7cc5a88a8c28cfb41b1f476a6d1e6">cbor_new_tag</a></div><div class="ttdeci">cbor_item_t * cbor_new_tag(uint64_t value)</div><div class="ttdoc">Create a new tag. </div><div class="ttdef"><b>Definition:</b> <a href="tags_8c_source.html#l00010">tags.c:10</a></div></div>
<div class="ttc" id="ints_8c_html_a62e9cd557438c1a5b8cf9a29c1f64baa"><div class="ttname"><a href="ints_8c.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="struct__cbor__unicode__status_html_a06b8c4d673a659a046aa3adea53cdef8"><div class="ttname"><a href="struct__cbor__unicode__status.html#a06b8c4d673a659a046aa3adea53cdef8">_cbor_unicode_status::status</a></div><div class="ttdeci">enum _cbor_unicode_status_error status</div><div class="ttdef"><b>Definition:</b> <a href="unicode_8h_source.html#l00024">unicode.h:24</a></div></div>
<div class="ttc" id="maps_8c_html_a64c91e7ecba7cf7d0d4949153d681db8"><div class="ttname"><a href="maps_8c.html#a64c91e7ecba7cf7d0d4949153d681db8">_cbor_map_add_key</a></div><div class="ttdeci">bool _cbor_map_add_key(cbor_item_t *item, cbor_item_t *key)</div><div class="ttdoc">Add a key to the map. </div><div class="ttdef"><b>Definition:</b> <a href="maps_8c_source.html#l00066">maps.c:66</a></div></div>
<div class="ttc" id="arrays_8c_html_aaec916ccc6f19782b6aef5ec1da2cc26"><div class="ttname"><a href="arrays_8c.html#aaec916ccc6f19782b6aef5ec1da2cc26">cbor_new_indefinite_array</a></div><div class="ttdeci">cbor_item_t * cbor_new_indefinite_array()</div><div class="ttdoc">Create new indefinite array. </div><div class="ttdef"><b>Definition:</b> <a href="arrays_8c_source.html#l00138">arrays.c:138</a></div></div>
<div class="ttc" id="structcbor__item__t_html_a6743a75cf89e1b455ddf3198ff98842a"><div class="ttname"><a href="structcbor__item__t.html#a6743a75cf89e1b455ddf3198ff98842a">cbor_item_t::type</a></div><div class="ttdeci">cbor_type type</div><div class="ttdoc">Major type discriminator. </div><div class="ttdef"><b>Definition:</b> <a href="data_8h_source.html#l00155">data.h:155</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a355c63dd0e941d9f3bc18b95876d7b39"><div class="ttname"><a href="builder__callbacks_8c.html#a355c63dd0e941d9f3bc18b95876d7b39">cbor_builder_negint16_callback</a></div><div class="ttdeci">void cbor_builder_negint16_callback(void *context, uint16_t value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00136">builder_callbacks.c:136</a></div></div>
<div class="ttc" id="ints_8c_html_a6ef24d3e2636c02de092fdfc337276b1"><div class="ttname"><a href="ints_8c.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="struct__cbor__decoder__context_html"><div class="ttname"><a href="struct__cbor__decoder__context.html">_cbor_decoder_context</a></div><div class="ttdoc">High-level decoding context. </div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8h_source.html#l00020">builder_callbacks.h:20</a></div></div>
<div class="ttc" id="common_8h_html_a1300043d7db8adf6ab67f7b787f14635"><div class="ttname"><a href="common_8h.html#a1300043d7db8adf6ab67f7b787f14635">_CBOR_FREE</a></div><div class="ttdeci">#define _CBOR_FREE</div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00086">common.h:86</a></div></div>
<div class="ttc" id="common_8h_html_a07a781e9212fad361b0f59f7fc921057"><div class="ttname"><a href="common_8h.html#a07a781e9212fad361b0f59f7fc921057">_CBOR_MALLOC</a></div><div class="ttdeci">#define _CBOR_MALLOC</div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00084">common.h:84</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a452f42c05cdf422e6526bc0d7cc135dc"><div class="ttname"><a href="builder__callbacks_8c.html#a452f42c05cdf422e6526bc0d7cc135dc">cbor_builder_undefined_callback</a></div><div class="ttdeci">void cbor_builder_undefined_callback(void *context)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00337">builder_callbacks.c:337</a></div></div>
<div class="ttc" id="struct__cbor__decoder__context_html_ad4c1540245b6241bc7aa3f7ade2fbf5a"><div class="ttname"><a href="struct__cbor__decoder__context.html#ad4c1540245b6241bc7aa3f7ade2fbf5a">_cbor_decoder_context::root</a></div><div class="ttdeci">cbor_item_t * root</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8h_source.html#l00025">builder_callbacks.h:25</a></div></div>
<div class="ttc" id="strings_8c_html_a6e2516983e412b9d22fd1fccbeded632"><div class="ttname"><a href="strings_8c.html#a6e2516983e412b9d22fd1fccbeded632">cbor_new_definite_string</a></div><div class="ttdeci">cbor_item_t * cbor_new_definite_string()</div><div class="ttdoc">Creates a new definite string. </div><div class="ttdef"><b>Definition:</b> <a href="strings_8c_source.html#l00012">strings.c:12</a></div></div>
<div class="ttc" id="stack_8c_html_a6541672c7a6bcc55e6645cff2a5ab005"><div class="ttname"><a href="stack_8c.html#a6541672c7a6bcc55e6645cff2a5ab005">_cbor_stack_pop</a></div><div class="ttdeci">void _cbor_stack_pop(struct _cbor_stack *stack)</div><div class="ttdef"><b>Definition:</b> <a href="stack_8c_source.html#l00015">stack.c:15</a></div></div>
<div class="ttc" id="arrays_8c_html_ac2f1480c546a0268e8b046b365e58599"><div class="ttname"><a href="arrays_8c.html#ac2f1480c546a0268e8b046b365e58599">cbor_array_is_definite</a></div><div class="ttdeci">bool cbor_array_is_definite(const cbor_item_t *item)</div><div class="ttdoc">Is the array definite? </div><div class="ttdef"><b>Definition:</b> <a href="arrays_8c_source.html#l00088">arrays.c:88</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a54852cd4c120b368d9b9b5cffb622303"><div class="ttname"><a href="builder__callbacks_8c.html#a54852cd4c120b368d9b9b5cffb622303">cbor_builder_null_callback</a></div><div class="ttdeci">void cbor_builder_null_callback(void *context)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00329">builder_callbacks.c:329</a></div></div>
<div class="ttc" id="arrays_8c_html_abb1c1c9731a2195857dc471f2a6f60f5"><div class="ttname"><a href="arrays_8c.html#abb1c1c9731a2195857dc471f2a6f60f5">cbor_array_push</a></div><div class="ttdeci">bool cbor_array_push(cbor_item_t *array, cbor_item_t *pushee)</div><div class="ttdoc">Append to the end. </div><div class="ttdef"><b>Definition:</b> <a href="arrays_8c_source.html#l00052">arrays.c:52</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a269aa36265c6fb1b18cad2a14cf355a0"><div class="ttname"><a href="builder__callbacks_8c.html#a269aa36265c6fb1b18cad2a14cf355a0">cbor_builder_string_start_callback</a></div><div class="ttdeci">void cbor_builder_string_start_callback(void *context)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00243">builder_callbacks.c:243</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a2dd24b9dcda84915c4fc0229a6e52df6"><div class="ttname"><a href="builder__callbacks_8c.html#a2dd24b9dcda84915c4fc0229a6e52df6">cbor_builder_array_start_callback</a></div><div class="ttdeci">void cbor_builder_array_start_callback(void *context, size_t size)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00251">builder_callbacks.c:251</a></div></div>
<div class="ttc" id="ints_8c_html_a2db697fb733dcbdbbef8714fd182a185"><div class="ttname"><a href="ints_8c.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="builder__callbacks_8c_html_aa10a165cd945c03ad09ae0866287f6bd"><div class="ttname"><a href="builder__callbacks_8c.html#aa10a165cd945c03ad09ae0866287f6bd">cbor_builder_string_callback</a></div><div class="ttdeci">void cbor_builder_string_callback(void *context, cbor_data data, size_t length)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00206">builder_callbacks.c:206</a></div></div>
<div class="ttc" id="floats__ctrls_8c_html_af5b06827916da81a32a1d68dd0727bb1"><div class="ttname"><a href="floats__ctrls_8c.html#af5b06827916da81a32a1d68dd0727bb1">cbor_new_float4</a></div><div class="ttdeci">cbor_item_t * cbor_new_float4()</div><div class="ttdoc">Constructs a new float item. </div><div class="ttdef"><b>Definition:</b> <a href="floats__ctrls_8c_source.html#l00122">floats_ctrls.c:122</a></div></div>
<div class="ttc" id="bytestrings_8c_html_a5dc8c27d6e7acfdd05fdc15c01e25b47"><div class="ttname"><a href="bytestrings_8c.html#a5dc8c27d6e7acfdd05fdc15c01e25b47">cbor_bytestring_add_chunk</a></div><div class="ttdeci">bool cbor_bytestring_add_chunk(cbor_item_t *item, cbor_item_t *chunk)</div><div class="ttdoc">Appends a chunk to the bytestring. </div><div class="ttdef"><b>Definition:</b> <a href="bytestrings_8c_source.html#l00095">bytestrings.c:95</a></div></div>
<div class="ttc" id="struct__cbor__unicode__status_html"><div class="ttname"><a href="struct__cbor__unicode__status.html">_cbor_unicode_status</a></div><div class="ttdoc">Signals unicode validation error and possibly its location. </div><div class="ttdef"><b>Definition:</b> <a href="unicode_8h_source.html#l00023">unicode.h:23</a></div></div>
<div class="ttc" id="struct__cbor__string__metadata_html_a07f2e49bd1cd40ba2277ae6d7a9b6d5d"><div class="ttname"><a href="struct__cbor__string__metadata.html#a07f2e49bd1cd40ba2277ae6d7a9b6d5d">_cbor_string_metadata::codepoint_count</a></div><div class="ttdeci">size_t codepoint_count</div><div class="ttdef"><b>Definition:</b> <a href="data_8h_source.html#l00090">data.h:90</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a7bcc936cb1cc653551de3d5b49fbe3f0"><div class="ttname"><a href="builder__callbacks_8c.html#a7bcc936cb1cc653551de3d5b49fbe3f0">cbor_builder_indef_array_start_callback</a></div><div class="ttdeci">void cbor_builder_indef_array_start_callback(void *context)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00263">builder_callbacks.c:263</a></div></div>
<div class="ttc" id="floats__ctrls_8c_html_a128574918683dbe68c7dd5256e4f6bf3"><div class="ttname"><a href="floats__ctrls_8c.html#a128574918683dbe68c7dd5256e4f6bf3">cbor_new_float8</a></div><div class="ttdeci">cbor_item_t * cbor_new_float8()</div><div class="ttdoc">Constructs a new float item. </div><div class="ttdef"><b>Definition:</b> <a href="floats__ctrls_8c_source.html#l00134">floats_ctrls.c:134</a></div></div>
<div class="ttc" id="data_8h_html_a121c5944682215e742475f12f07c0a72"><div class="ttname"><a href="data_8h.html#a121c5944682215e742475f12f07c0a72">cbor_data</a></div><div class="ttdeci">const unsigned char * cbor_data</div><div class="ttdef"><b>Definition:</b> <a href="data_8h_source.html#l00020">data.h:20</a></div></div>
<div class="ttc" id="unicode_8c_html_ade9ebfe3d9b9bfad4c9fd5c158d519a8"><div class="ttname"><a href="unicode_8c.html#ade9ebfe3d9b9bfad4c9fd5c158d519a8">_cbor_unicode_codepoint_count</a></div><div class="ttdeci">size_t _cbor_unicode_codepoint_count(cbor_data source, size_t source_length, struct _cbor_unicode_status *status)</div><div class="ttdef"><b>Definition:</b> <a href="unicode_8c_source.html#l00043">unicode.c:43</a></div></div>
<div class="ttc" id="ints_8c_html_aed6a5a44245b8447a768c95e351c2c0c"><div class="ttname"><a href="ints_8c.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="struct__cbor__decoder__context_html_af21635162948fc488da3c1625f1bc278"><div class="ttname"><a href="struct__cbor__decoder__context.html#af21635162948fc488da3c1625f1bc278">_cbor_decoder_context::stack</a></div><div class="ttdeci">struct _cbor_stack * stack</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8h_source.html#l00026">builder_callbacks.h:26</a></div></div>
<div class="ttc" id="floats__ctrls_8c_html_a62a2ed2815d844fd54474f30ebbd0f6f"><div class="ttname"><a href="floats__ctrls_8c.html#a62a2ed2815d844fd54474f30ebbd0f6f">cbor_set_float8</a></div><div class="ttdeci">void cbor_set_float8(cbor_item_t *item, double value)</div><div class="ttdoc">Assigns a float value. </div><div class="ttdef"><b>Definition:</b> <a href="floats__ctrls_8c_source.html#l00078">floats_ctrls.c:78</a></div></div>
<div class="ttc" id="maps_8c_html_a0dccaa76ac293bb5a11dbca6d16f6253"><div class="ttname"><a href="maps_8c.html#a0dccaa76ac293bb5a11dbca6d16f6253">cbor_map_is_definite</a></div><div class="ttdeci">bool cbor_map_is_definite(const cbor_item_t *item)</div><div class="ttdoc">Is this map definite? </div><div class="ttdef"><b>Definition:</b> <a href="maps_8c_source.html#l00126">maps.c:126</a></div></div>
<div class="ttc" id="common_8c_html_a327dce45c1cb680953555290dba8e35b"><div class="ttname"><a href="common_8c.html#a327dce45c1cb680953555290dba8e35b">cbor_move</a></div><div class="ttdeci">cbor_item_t * cbor_move(cbor_item_t *item)</div><div class="ttdoc">Provides CPP-like move construct. </div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00184">common.c:184</a></div></div>
<div class="ttc" id="floats__ctrls_8c_html_a480b38bd08feb75b1bc705850595b4ee"><div class="ttname"><a href="floats__ctrls_8c.html#a480b38bd08feb75b1bc705850595b4ee">cbor_new_null</a></div><div class="ttdeci">cbor_item_t * cbor_new_null()</div><div class="ttdoc">Constructs new null ctrl item. </div><div class="ttdef"><b>Definition:</b> <a href="floats__ctrls_8c_source.html#l00146">floats_ctrls.c:146</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a4b0a2d222bc823bb88f9b8ba38e00f05"><div class="ttname"><a href="builder__callbacks_8c.html#a4b0a2d222bc823bb88f9b8ba38e00f05">cbor_builder_negint32_callback</a></div><div class="ttdeci">void cbor_builder_negint32_callback(void *context, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00145">builder_callbacks.c:145</a></div></div>
<div class="ttc" id="unioncbor__item__metadata_html_a753eccc4105c3861dd40f50681ff18df"><div class="ttname"><a href="unioncbor__item__metadata.html#a753eccc4105c3861dd40f50681ff18df">cbor_item_metadata::string_metadata</a></div><div class="ttdeci">struct _cbor_string_metadata string_metadata</div><div class="ttdef"><b>Definition:</b> <a href="data_8h_source.html#l00141">data.h:141</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_ab99cc7da548fd54ed22a6c988be037ae"><div class="ttname"><a href="builder__callbacks_8c.html#ab99cc7da548fd54ed22a6c988be037ae">cbor_builder_negint64_callback</a></div><div class="ttdeci">void cbor_builder_negint64_callback(void *context, uint64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00155">builder_callbacks.c:155</a></div></div>
<div class="ttc" id="floats__ctrls_8c_html_a1b332d66de1b49f202b257dc1d245c30"><div class="ttname"><a href="floats__ctrls_8c.html#a1b332d66de1b49f202b257dc1d245c30">cbor_new_float2</a></div><div class="ttdeci">cbor_item_t * cbor_new_float2()</div><div class="ttdoc">Constructs a new float item. </div><div class="ttdef"><b>Definition:</b> <a href="floats__ctrls_8c_source.html#l00110">floats_ctrls.c:110</a></div></div>
<div class="ttc" id="maps_8c_html_abb15486eebcd1c41c373613757505705"><div class="ttname"><a href="maps_8c.html#abb15486eebcd1c41c373613757505705">_cbor_map_add_value</a></div><div class="ttdeci">bool _cbor_map_add_value(cbor_item_t *item, cbor_item_t *value)</div><div class="ttdoc">Add a value to the map. </div><div class="ttdef"><b>Definition:</b> <a href="maps_8c_source.html#l00106">maps.c:106</a></div></div>
<div class="ttc" id="tags_8c_html_a4e6dc4f4fda5889819713bd3957de3c6"><div class="ttname"><a href="tags_8c.html#a4e6dc4f4fda5889819713bd3957de3c6">cbor_tag_set_item</a></div><div class="ttdeci">void cbor_tag_set_item(cbor_item_t *item, cbor_item_t *tagged_item)</div><div class="ttdoc">Set the tagged item. </div><div class="ttdef"><b>Definition:</b> <a href="tags_8c_source.html#l00034">tags.c:34</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_ac78462da492c7d57dfb90f7aadcadc5e"><div class="ttname"><a href="builder__callbacks_8c.html#ac78462da492c7d57dfb90f7aadcadc5e">cbor_builder_float8_callback</a></div><div class="ttdeci">void cbor_builder_float8_callback(void *context, double value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00320">builder_callbacks.c:320</a></div></div>
<div class="ttc" id="bytestrings_8c_html_a513fd06374cb4faa9e909c85e4248199"><div class="ttname"><a href="bytestrings_8c.html#a513fd06374cb4faa9e909c85e4248199">cbor_bytestring_set_handle</a></div><div class="ttdeci">void cbor_bytestring_set_handle(cbor_item_t *item, cbor_mutable_data CBOR_RESTRICT_POINTER data, size_t length)</div><div class="ttdoc">Set the handle to the binary data. </div><div class="ttdef"><b>Definition:</b> <a href="bytestrings_8c_source.html#l00072">bytestrings.c:72</a></div></div>
<div class="ttc" id="strings_8c_html_a634462c7237298a196413cd62d7d1877"><div class="ttname"><a href="strings_8c.html#a634462c7237298a196413cd62d7d1877">cbor_string_add_chunk</a></div><div class="ttdeci">bool cbor_string_add_chunk(cbor_item_t *item, cbor_item_t *chunk)</div><div class="ttdoc">Appends a chunk to the string. </div><div class="ttdef"><b>Definition:</b> <a href="strings_8c_source.html#l00082">strings.c:82</a></div></div>
<div class="ttc" id="arrays_8c_html_a93d7c18019000d5e206a81a4cca70631"><div class="ttname"><a href="arrays_8c.html#a93d7c18019000d5e206a81a4cca70631">cbor_new_definite_array</a></div><div class="ttdeci">cbor_item_t * cbor_new_definite_array(size_t size)</div><div class="ttdoc">Create new definite array. </div><div class="ttdef"><b>Definition:</b> <a href="arrays_8c_source.html#l00106">arrays.c:106</a></div></div>
<div class="ttc" id="ints_8c_html_a9cf9db24315a0e622746a546cc112467"><div class="ttname"><a href="ints_8c.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="builder__callbacks_8h_html"><div class="ttname"><a href="builder__callbacks_8h.html">builder_callbacks.h</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_abfd1332f0df578631a3702a2c193287c"><div class="ttname"><a href="builder__callbacks_8c.html#abfd1332f0df578631a3702a2c193287c">_cbor_builder_append</a></div><div class="ttdeci">void _cbor_builder_append(cbor_item_t *item, struct _cbor_decoder_context *ctx)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00019">builder_callbacks.c:19</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a95d00fb404804d93ebffdaf607f48a62"><div class="ttname"><a href="builder__callbacks_8c.html#a95d00fb404804d93ebffdaf607f48a62">cbor_builder_map_start_callback</a></div><div class="ttdeci">void cbor_builder_map_start_callback(void *context, size_t size)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00279">builder_callbacks.c:279</a></div></div>
<div class="ttc" id="stack_8c_html_abb0f169980a61710ee2b83ac90df3442"><div class="ttname"><a href="stack_8c.html#abb0f169980a61710ee2b83ac90df3442">_cbor_stack_push</a></div><div class="ttdeci">struct _cbor_stack_record * _cbor_stack_push(struct _cbor_stack *stack, cbor_item_t *item, size_t subitems)</div><div class="ttdef"><b>Definition:</b> <a href="stack_8c_source.html#l00023">stack.c:23</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a1898083345b031539becf70203361860"><div class="ttname"><a href="builder__callbacks_8c.html#a1898083345b031539becf70203361860">cbor_builder_boolean_callback</a></div><div class="ttdeci">void cbor_builder_boolean_callback(void *context, bool value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00345">builder_callbacks.c:345</a></div></div>
<div class="ttc" id="struct__cbor__stack__record_html_a1a1d4be830fa1e0d9c5369cddccce47e"><div class="ttname"><a href="struct__cbor__stack__record.html#a1a1d4be830fa1e0d9c5369cddccce47e">_cbor_stack_record::item</a></div><div class="ttdeci">cbor_item_t * item</div><div class="ttdef"><b>Definition:</b> <a href="stack_8h_source.html#l00020">stack.h:20</a></div></div>
<div class="ttc" id="maps_8c_html_a58ac69227f48815754651e93d15a5051"><div class="ttname"><a href="maps_8c.html#a58ac69227f48815754651e93d15a5051">cbor_new_indefinite_map</a></div><div class="ttdeci">cbor_item_t * cbor_new_indefinite_map()</div><div class="ttdoc">Create a new indefinite map. </div><div class="ttdef"><b>Definition:</b> <a href="maps_8c_source.html#l00046">maps.c:46</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a8cac42a8aeaf19f532ccc5c21e851e8c"><div class="ttname"><a href="builder__callbacks_8c.html#a8cac42a8aeaf19f532ccc5c21e851e8c">cbor_builder_uint16_callback</a></div><div class="ttdeci">void cbor_builder_uint16_callback(void *context, uint16_t value)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00096">builder_callbacks.c:96</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="builder__callbacks_8c_html_a1c0c98b6c27ac737123ecb014cb6e9c7"><div class="ttname"><a href="builder__callbacks_8c.html#a1c0c98b6c27ac737123ecb014cb6e9c7">cbor_builder_byte_string_start_callback</a></div><div class="ttdeci">void cbor_builder_byte_string_start_callback(void *context)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00197">builder_callbacks.c:197</a></div></div>
<div class="ttc" id="unicode_8h_html_a5f58283b505b6cc8a5646516ae20831fa7ddb42c4f16ebd6d46fe1e331c643c8b"><div class="ttname"><a href="unicode_8h.html#a5f58283b505b6cc8a5646516ae20831fa7ddb42c4f16ebd6d46fe1e331c643c8b">_CBOR_UNICODE_BADCP</a></div><div class="ttdef"><b>Definition:</b> <a href="unicode_8h_source.html#l00019">unicode.h:19</a></div></div>
<div class="ttc" id="maps_8c_html_adab3c6ff2e51dcf2637567431cc6e76e"><div class="ttname"><a href="maps_8c.html#adab3c6ff2e51dcf2637567431cc6e76e">cbor_new_definite_map</a></div><div class="ttdeci">cbor_item_t * cbor_new_definite_map(size_t size)</div><div class="ttdoc">Create a new definite map. </div><div class="ttdef"><b>Definition:</b> <a href="maps_8c_source.html#l00023">maps.c:23</a></div></div>
<div class="ttc" id="builder__callbacks_8c_html_a28b2dc3b7b96debc8763407308c365ea"><div class="ttname"><a href="builder__callbacks_8c.html#a28b2dc3b7b96debc8763407308c365ea">cbor_builder_indef_map_start_callback</a></div><div class="ttdeci">void cbor_builder_indef_map_start_callback(void *context)</div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8c_source.html#l00271">builder_callbacks.c:271</a></div></div>
<div class="ttc" id="ints_8c_html_af82a3961109f2a36324157e218680016"><div class="ttname"><a href="ints_8c.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_8c_html_a68f71f9574e0085f02a27bd0f58d4b55"><div class="ttname"><a href="ints_8c.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="struct__cbor__stack_html_a559869a03a766ae041b1e385ceb34026"><div class="ttname"><a href="struct__cbor__stack.html#a559869a03a766ae041b1e385ceb34026">_cbor_stack::top</a></div><div class="ttdeci">struct _cbor_stack_record * top</div><div class="ttdef"><b>Definition:</b> <a href="stack_8h_source.html#l00026">stack.h:26</a></div></div>
<div class="ttc" id="data_8h_html_a3a931b40fc31b51cccfd1bc3dc5fc5d6a057fc3133cb4465f9eb734acfd195db2"><div class="ttname"><a href="data_8h.html#a3a931b40fc31b51cccfd1bc3dc5fc5d6a057fc3133cb4465f9eb734acfd195db2">CBOR_TYPE_MAP</a></div><div class="ttdoc">5 - maps </div><div class="ttdef"><b>Definition:</b> <a href="data_8h_source.html#l00030">data.h:30</a></div></div>
<div class="ttc" id="strings_8c_html_aa1a92438a04ae77beea9a17910805530"><div class="ttname"><a href="strings_8c.html#aa1a92438a04ae77beea9a17910805530">cbor_string_is_indefinite</a></div><div class="ttdeci">bool cbor_string_is_indefinite(const cbor_item_t *item)</div><div class="ttdoc">Is the string indefinite? </div><div class="ttdef"><b>Definition:</b> <a href="strings_8c_source.html#l00130">strings.c:130</a></div></div>
<div class="ttc" id="struct__cbor__decoder__context_html_ada14322afd080c27f3ea76b3ba657505"><div class="ttname"><a href="struct__cbor__decoder__context.html#ada14322afd080c27f3ea76b3ba657505">_cbor_decoder_context::creation_failed</a></div><div class="ttdeci">bool creation_failed</div><div class="ttdoc">Callback creating the last item has failed. </div><div class="ttdef"><b>Definition:</b> <a href="builder__callbacks_8h_source.html#l00022">builder_callbacks.h:22</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>