--- /srv/rebuilderd/tmp/rebuilderd8pjnvL/inputs/libtinycbor-dev_7.0-1_amd64.deb +++ /srv/rebuilderd/tmp/rebuilderd8pjnvL/out/libtinycbor-dev_7.0-1_amd64.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2026-02-24 08:15:26.000000 debian-binary │ --rw-r--r-- 0 0 0 1888 2026-02-24 08:15:26.000000 control.tar.xz │ --rw-r--r-- 0 0 0 91840 2026-02-24 08:15:26.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 1884 2026-02-24 08:15:26.000000 control.tar.xz │ +-rw-r--r-- 0 0 0 91868 2026-02-24 08:15:26.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ │ │ │ ├── line order │ │ │ │ @@ -6,19 +6,19 @@ │ │ │ │ usr/lib/x86_64-linux-gnu/cmake/tinycbor/TinyCBOR-targets.cmake │ │ │ │ usr/lib/x86_64-linux-gnu/cmake/tinycbor/tinycbor-config-version.cmake │ │ │ │ usr/lib/x86_64-linux-gnu/cmake/tinycbor/tinycbor-config.cmake │ │ │ │ usr/lib/x86_64-linux-gnu/pkgconfig/tinycbor.pc │ │ │ │ usr/share/doc-base/libtinycbor-dev.libtinycbor-dev │ │ │ │ usr/share/doc/libtinycbor-dev/changelog.Debian.gz │ │ │ │ usr/share/doc/libtinycbor-dev/copyright │ │ │ │ +usr/share/doc/libtinycbor-dev/html/a00005.html │ │ │ │ usr/share/doc/libtinycbor-dev/html/a00005_source.html │ │ │ │ -usr/share/doc/libtinycbor-dev/html/a00029.html │ │ │ │ -usr/share/doc/libtinycbor-dev/html/a00029_source.html │ │ │ │ -usr/share/doc/libtinycbor-dev/html/a00044.html │ │ │ │ -usr/share/doc/libtinycbor-dev/html/a00044_source.html │ │ │ │ +usr/share/doc/libtinycbor-dev/html/a00008_source.html │ │ │ │ +usr/share/doc/libtinycbor-dev/html/a00026.html │ │ │ │ +usr/share/doc/libtinycbor-dev/html/a00026_source.html │ │ │ │ usr/share/doc/libtinycbor-dev/html/a00051.html │ │ │ │ usr/share/doc/libtinycbor-dev/html/a00052.html │ │ │ │ usr/share/doc/libtinycbor-dev/html/a00053.html │ │ │ │ usr/share/doc/libtinycbor-dev/html/a00054.html │ │ │ │ usr/share/doc/libtinycbor-dev/html/a00055.html │ │ │ │ usr/share/doc/libtinycbor-dev/html/a00059.html │ │ │ │ usr/share/doc/libtinycbor-dev/html/a00079.html ├── data.tar.xz │ ├── data.tar │ │ ├── file list │ │ │ @@ -18,19 +18,19 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 238 2026-02-24 08:15:26.000000 ./usr/lib/x86_64-linux-gnu/pkgconfig/tinycbor.pc │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-02-24 08:15:26.000000 ./usr/share/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-02-24 08:15:26.000000 ./usr/share/doc/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/ │ │ │ -rw-r--r-- 0 root (0) root (0) 877 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/changelog.Debian.gz │ │ │ -rw-r--r-- 0 root (0) root (0) 1397 2024-10-19 16:35:58.000000 ./usr/share/doc/libtinycbor-dev/copyright │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/ │ │ │ --rw-r--r-- 0 root (0) root (0) 7555 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00005_source.html │ │ │ --rw-r--r-- 0 root (0) root (0) 4937 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00029.html │ │ │ --rw-r--r-- 0 root (0) root (0) 13154 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00029_source.html │ │ │ --rw-r--r-- 0 root (0) root (0) 77238 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00044.html │ │ │ --rw-r--r-- 0 root (0) root (0) 169353 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00044_source.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 4937 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00005.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 13154 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00005_source.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 7555 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00008_source.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 77238 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00026.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 169353 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00026_source.html │ │ │ -rw-r--r-- 0 root (0) root (0) 6930 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00051.html │ │ │ -rw-r--r-- 0 root (0) root (0) 79713 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00052.html │ │ │ -rw-r--r-- 0 root (0) root (0) 147907 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00053.html │ │ │ -rw-r--r-- 0 root (0) root (0) 11936 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00054.html │ │ │ -rw-r--r-- 0 root (0) root (0) 13667 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00055.html │ │ │ -rw-r--r-- 0 root (0) root (0) 2577 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00059.html │ │ │ -rw-r--r-- 0 root (0) root (0) 2797 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/a00079.html │ │ │ @@ -43,16 +43,16 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 3976 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/files.html │ │ │ -rw-r--r-- 0 root (0) root (0) 14067 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/globals.html │ │ │ -rw-r--r-- 0 root (0) root (0) 13529 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/globals_func.html │ │ │ -rw-r--r-- 0 root (0) root (0) 2663 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/globals_type.html │ │ │ -rw-r--r-- 0 root (0) root (0) 2677 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/globals_vars.html │ │ │ -rw-r--r-- 0 root (0) root (0) 6204 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/graph_legend.html │ │ │ -rw-r--r-- 0 root (0) root (0) 23327 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/graph_legend.png │ │ │ --rw-r--r-- 0 root (0) root (0) 3425 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/index.hhc.gz │ │ │ --rw-r--r-- 0 root (0) root (0) 4003 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/index.hhk.gz │ │ │ +-rw-r--r-- 0 root (0) root (0) 3424 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/index.hhc.gz │ │ │ +-rw-r--r-- 0 root (0) root (0) 4004 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/index.hhk.gz │ │ │ -rw-r--r-- 0 root (0) root (0) 803 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/index.hhp │ │ │ -rw-r--r-- 0 root (0) root (0) 2696 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 2189 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/menudata.js │ │ │ -rw-r--r-- 0 root (0) root (0) 5107 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/navtree.css │ │ │ -rw-r--r-- 0 root (0) root (0) 1276 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/tabs.css │ │ │ -rw-r--r-- 0 root (0) root (0) 3420 2026-02-24 08:15:26.000000 ./usr/share/doc/libtinycbor-dev/html/topics.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-02-24 08:15:26.000000 ./usr/share/doc-base/ │ │ ├── ./usr/share/doc/libtinycbor-dev/html/a00005_source.html │ │ │ @@ -1,15 +1,15 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ -TinyCBOR 7.0 API: memory.h Source File │ │ │ +TinyCBOR 7.0 API: cborjson.h Source File │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
│ │ │ @@ -42,20 +42,20 @@ │ │ │
  • Globals
  • │ │ │ │ │ │
    │ │ │ │ │ │ │ │ │
    │ │ │
    │ │ │ -
    memory.h
    │ │ │ +
    cborjson.h
    │ │ │
    │ │ │
    │ │ │ -
    1/****************************************************************************
    │ │ │ +Go to the documentation of this file.
    1/****************************************************************************
    │ │ │
    2**
    │ │ │ -
    3** Copyright (C) 2016 Intel Corporation
    │ │ │ +
    3** Copyright (C) 2015 Intel Corporation
    │ │ │
    4**
    │ │ │
    5** Permission is hereby granted, free of charge, to any person obtaining a copy
    │ │ │
    6** of this software and associated documentation files (the "Software"), to deal
    │ │ │
    7** in the Software without restriction, including without limitation the rights
    │ │ │
    8** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    │ │ │
    9** copies of the Software, and to permit persons to whom the Software is
    │ │ │
    10** furnished to do so, subject to the following conditions:
    │ │ │ @@ -69,22 +69,56 @@ │ │ │
    18** AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    │ │ │
    19** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    │ │ │
    20** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    │ │ │
    21** THE SOFTWARE.
    │ │ │
    22**
    │ │ │
    23****************************************************************************/
    │ │ │
    24
    │ │ │ -
    25#if defined(CBOR_CUSTOM_ALLOC_INCLUDE)
    │ │ │ -
    26# include CBOR_CUSTOM_ALLOC_INCLUDE
    │ │ │ -
    27#else
    │ │ │ -
    28# include <stdlib.h>
    │ │ │ -
    29# define cbor_malloc malloc
    │ │ │ -
    30# define cbor_realloc realloc
    │ │ │ -
    31# define cbor_free free
    │ │ │ +
    25#ifndef CBORJSON_H
    │ │ │ +
    26#define CBORJSON_H
    │ │ │ +
    27
    │ │ │ +
    28#include "cbor.h"
    │ │ │ +
    29
    │ │ │ +
    30#ifdef __cplusplus
    │ │ │ +
    31extern "C" {
    │ │ │
    32#endif
    │ │ │ +
    33
    │ │ │ +
    34/* Conversion to JSON */
    │ │ │ +
    35enum CborToJsonFlags
    │ │ │ +
    36{
    │ │ │ +
    37 CborConvertAddMetadata = 1,
    │ │ │ +
    38 CborConvertTagsToObjects = 2,
    │ │ │ +
    39 CborConvertIgnoreTags = 0,
    │ │ │ +
    40
    │ │ │ +
    41 CborConvertObeyByteStringTags = 0,
    │ │ │ +
    42 CborConvertByteStringsToBase64Url = 4,
    │ │ │ +
    43
    │ │ │ +
    44 CborConvertRequireMapStringKeys = 0,
    │ │ │ +
    45 CborConvertStringifyMapKeys = 8,
    │ │ │ +
    46
    │ │ │ +
    47 CborConvertDefaultFlags = 0
    │ │ │ +
    48};
    │ │ │ +
    49
    │ │ │ +
    50CBOR_API CborError cbor_value_to_json_advance(FILE *out, CborValue *value, int flags);
    │ │ │ +
    51CBOR_INLINE_API CborError cbor_value_to_json(FILE *out, const CborValue *value, int flags)
    │ │ │ +
    52{
    │ │ │ +
    53 CborValue copy = *value;
    │ │ │ +
    54 return cbor_value_to_json_advance(out, &copy, flags);
    │ │ │ +
    55}
    │ │ │ +
    56
    │ │ │ +
    57#ifdef __cplusplus
    │ │ │ +
    58}
    │ │ │ +
    59#endif
    │ │ │ +
    60
    │ │ │ +
    61#endif /* CBORJSON_H */
    │ │ │ +
    62
    │ │ │ +
    > The <cbor.h> is the main header in TinyCBOR and defines the constants used by most functions as wel...
    │ │ │ +
    CborError cbor_value_to_json(FILE *out, const CborValue *value, int flags)
    Converts the current CBOR type pointed to by value to JSON and writes that to the out stream.
    Definition cborjson.h:51
    │ │ │ +
    CBOR_API CborError cbor_value_to_json_advance(FILE *out, CborValue *value, int flags)
    Converts the current CBOR type pointed to by value to JSON and writes that to the out stream.
    Definition cbortojson.c:786
    │ │ │ +
    This type contains one value parsed from the CBOR stream.
    Definition cbor.h:341
    │ │ │
    │ │ │ │ │ │ │ │ │
    │ │ │ │ │ │ ├── html2text {} │ │ │ │ @@ -1,18 +1,19 @@ │ │ │ │ TinyCBOR 7.0 API │ │ │ │ * _M_a_i_n_ _P_a_g_e │ │ │ │ * _T_o_p_i_c_s │ │ │ │ * _D_a_t_a_ _S_t_r_u_c_t_u_r_e_s │ │ │ │ * _F_i_l_e_s │ │ │ │ * _F_i_l_e_ _L_i_s_t │ │ │ │ * _G_l_o_b_a_l_s │ │ │ │ -memory.h │ │ │ │ +cborjson.h │ │ │ │ +_G_o_ _t_o_ _t_h_e_ _d_o_c_u_m_e_n_t_a_t_i_o_n_ _o_f_ _t_h_i_s_ _f_i_l_e_. │ │ │ │ 1/**************************************************************************** │ │ │ │ 2** │ │ │ │ -3** Copyright (C) 2016 Intel Corporation │ │ │ │ +3** Copyright (C) 2015 Intel Corporation │ │ │ │ 4** │ │ │ │ 5** Permission is hereby granted, free of charge, to any person obtaining a │ │ │ │ copy │ │ │ │ 6** of this software and associated documentation files (the "Software"), to │ │ │ │ deal │ │ │ │ 7** in the Software without restriction, including without limitation the │ │ │ │ rights │ │ │ │ @@ -31,17 +32,66 @@ │ │ │ │ 19** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING │ │ │ │ FROM, │ │ │ │ 20** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN │ │ │ │ 21** THE SOFTWARE. │ │ │ │ 22** │ │ │ │ 23****************************************************************************/ │ │ │ │ 24 │ │ │ │ -25#if defined(CBOR_CUSTOM_ALLOC_INCLUDE) │ │ │ │ -26# include CBOR_CUSTOM_ALLOC_INCLUDE │ │ │ │ -27#else │ │ │ │ -28# include │ │ │ │ -29# define cbor_malloc malloc │ │ │ │ -30# define cbor_realloc realloc │ │ │ │ -31# define cbor_free free │ │ │ │ +25#ifndef CBORJSON_H │ │ │ │ +26#define CBORJSON_H │ │ │ │ +27 │ │ │ │ +28#include "_c_b_o_r_._h" │ │ │ │ +29 │ │ │ │ +30#ifdef __cplusplus │ │ │ │ +31extern "C" { │ │ │ │ 32#endif │ │ │ │ +33 │ │ │ │ +34/* Conversion to JSON */ │ │ │ │ +35enum CborToJsonFlags │ │ │ │ +36{ │ │ │ │ +37 CborConvertAddMetadata = 1, │ │ │ │ +38 CborConvertTagsToObjects = 2, │ │ │ │ +39 CborConvertIgnoreTags = 0, │ │ │ │ +40 │ │ │ │ +41 CborConvertObeyByteStringTags = 0, │ │ │ │ +42 CborConvertByteStringsToBase64Url = 4, │ │ │ │ +43 │ │ │ │ +44 CborConvertRequireMapStringKeys = 0, │ │ │ │ +45 CborConvertStringifyMapKeys = 8, │ │ │ │ +46 │ │ │ │ +47 CborConvertDefaultFlags = 0 │ │ │ │ +48}; │ │ │ │ +49 │ │ │ │ +50CBOR_API CborError _c_b_o_r___v_a_l_u_e___t_o___j_s_o_n___a_d_v_a_n_c_e(FILE *out, _C_b_o_r_V_a_l_u_e *value, │ │ │ │ +int flags); │ │ │ │ +_5_1CBOR_INLINE_API CborError _c_b_o_r___v_a_l_u_e___t_o___j_s_o_n(FILE *out, const _C_b_o_r_V_a_l_u_e │ │ │ │ +*value, int flags) │ │ │ │ +52{ │ │ │ │ +53 _C_b_o_r_V_a_l_u_e copy = *value; │ │ │ │ +54 return _c_b_o_r___v_a_l_u_e___t_o___j_s_o_n___a_d_v_a_n_c_e(out, ©, flags); │ │ │ │ +55} │ │ │ │ +56 │ │ │ │ +57#ifdef __cplusplus │ │ │ │ +58} │ │ │ │ +59#endif │ │ │ │ +60 │ │ │ │ +61#endif /* CBORJSON_H */ │ │ │ │ +62 │ │ │ │ +_c_b_o_r_._h │ │ │ │ +> The is the main header in TinyCBOR and defines the constants used by │ │ │ │ +most functions as wel... │ │ │ │ +_c_b_o_r___v_a_l_u_e___t_o___j_s_o_n │ │ │ │ +CborError cbor_value_to_json(FILE *out, const CborValue *value, int flags) │ │ │ │ +Converts the current CBOR type pointed to by value to JSON and writes that to │ │ │ │ +the out stream. │ │ │ │ +DDeeffiinniittiioonn cborjson.h:51 │ │ │ │ +_c_b_o_r___v_a_l_u_e___t_o___j_s_o_n___a_d_v_a_n_c_e │ │ │ │ +CBOR_API CborError cbor_value_to_json_advance(FILE *out, CborValue *value, int │ │ │ │ +flags) │ │ │ │ +Converts the current CBOR type pointed to by value to JSON and writes that to │ │ │ │ +the out stream. │ │ │ │ +DDeeffiinniittiioonn cbortojson.c:786 │ │ │ │ +_C_b_o_r_V_a_l_u_e │ │ │ │ +This type contains one value parsed from the CBOR stream. │ │ │ │ +DDeeffiinniittiioonn cbor.h:341 │ │ │ │ =============================================================================== │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.15.0 │ │ ├── ./usr/share/doc/libtinycbor-dev/html/a00053.html │ │ │ @@ -368,15 +368,15 @@ │ │ │

    Copies the string pointed by value into the buffer provided at buffer of buflen bytes.

    │ │ │

    If buffer is a NULL pointer, this function will not copy anything and will only update the next value.

    │ │ │

    If the iterator value does not point to a byte string, the behaviour is undefined, so checking with cbor_value_get_type or cbor_value_is_byte_string is recommended.

    │ │ │

    If the provided buffer length was too small, this function returns an error condition of CborErrorOutOfMemory. If you need to calculate the length of the string in order to preallocate a buffer, use cbor_value_calculate_string_length().

    │ │ │

    On success, this function sets the number of bytes copied to *buflen. If the buffer is large enough, this function will insert a null byte after the last copied byte, to facilitate manipulation of null-terminated strings. That byte is not included in the returned value of *buflen.

    │ │ │

    The next pointer, if not null, will be updated to point to the next item after this string. If value points to the last item, then next will be invalid.

    │ │ │

    This function may not run in constant time (it will run in O(n) time on the number of chunks). It requires constant memory (O(1)).

    │ │ │ -
    See also
    cbor_value_get_byte_string_chunk(), cbor_value_dup_text_string(), cbor_value_copy_text_string(), cbor_value_get_string_length(), cbor_value_calculate_string_length()
    │ │ │ +
    See also
    cbor_value_get_byte_string_chunk(), cbor_value_dup_text_string(), cbor_value_copy_text_string(), cbor_value_get_string_length(), cbor_value_calculate_string_length()
    │ │ │ │ │ │
    │ │ │ │ │ │ │ │ │

    ◆ cbor_value_copy_text_string()

    │ │ │ │ │ │
    │ │ │ @@ -409,15 +409,15 @@ │ │ │

    If buffer is a NULL pointer, this function will not copy anything and will only update the next value.

    │ │ │

    If the iterator value does not point to a text string, the behaviour is undefined, so checking with cbor_value_get_type or cbor_value_is_text_string is recommended.

    │ │ │

    If the provided buffer length was too small, this function returns an error condition of CborErrorOutOfMemory. If you need to calculate the length of the string in order to preallocate a buffer, use cbor_value_calculate_string_length().

    │ │ │

    On success, this function sets the number of bytes copied to *buflen. If the buffer is large enough, this function will insert a null byte after the last copied byte, to facilitate manipulation of text strings. That byte is not included in the returned value of *buflen. If there was no space for the terminating null, no error is returned, so callers must check the value of *buflen after the call, before relying on the '\0'; if it has not been changed by the call, there is no '\0'-termination on the buffer's contents.

    │ │ │

    The next pointer, if not null, will be updated to point to the next item after this string. If value points to the last item, then next will be invalid.

    │ │ │

    This function may not run in constant time (it will run in O(n) time on the number of chunks). It requires constant memory (O(1)).

    │ │ │
    Note
    This function does not perform UTF-8 validation on the incoming text string.
    │ │ │ -
    See also
    cbor_value_get_text_string_chunk() cbor_value_dup_text_string(), cbor_value_copy_byte_string(), cbor_value_get_string_length(), cbor_value_calculate_string_length()
    │ │ │ +
    See also
    cbor_value_get_text_string_chunk() cbor_value_dup_text_string(), cbor_value_copy_byte_string(), cbor_value_get_string_length(), cbor_value_calculate_string_length()
    │ │ │ │ │ │
    │ │ │ │ │ │ │ │ │

    ◆ cbor_value_enter_container()

    │ │ │ │ │ │
    │ │ │ @@ -540,17 +540,17 @@ │ │ │ │ │ │ │ │ │
    │ │ │ │ │ │

    Retrieves the CBOR half-precision floating point (16-bit) value that value points to and stores it in result.

    │ │ │

    If the iterator value does not point to a half-precision floating point value, the behavior is undefined, so checking with cbor_value_get_type or with cbor_value_is_half_float is recommended.

    │ │ │

    Note: since the C language does not have a standard type for half-precision floating point, this function takes a void * as a parameter for the storage area, which must be at least 16 bits wide.

    │ │ │ -
    See also
    cbor_value_get_type(), cbor_value_is_valid(), cbor_value_is_half_float(), cbor_value_get_half_float_as_float(), cbor_value_get_float()
    │ │ │ +
    See also
    cbor_value_get_type(), cbor_value_is_valid(), cbor_value_is_half_float(), cbor_value_get_half_float_as_float(), cbor_value_get_float()
    │ │ │ │ │ │ -

    Referenced by cbor_value_get_half_float_as_float().

    │ │ │ +

    Referenced by cbor_value_get_half_float_as_float().

    │ │ │ │ │ │
    │ │ │ │ │ │ │ │ │

    ◆ cbor_value_get_int()

    │ │ │ │ │ │
    │ │ │ @@ -852,15 +852,15 @@ │ │ │
    }
    │ │ │
    }
    │ │ │
    CborError cbor_value_get_text_string_chunk(const CborValue *value, const char **bufferptr, size_t *len, CborValue *next)
    Extracts one text string chunk pointed to by value and stores a pointer to the data in buffer and the...
    Definition cbor.h:549
    │ │ │
    bool cbor_value_is_text_string(const CborValue *value)
    Returns true if the iterator value is valid and points to a CBOR text string.
    Definition cbor.h:470
    │ │ │

    If the iterator value does not point to a text string, the behaviour is undefined, so checking with cbor_value_get_type or cbor_value_is_text_string is recommended.

    │ │ │

    The next pointer, if not null, will be updated to point to the next item after this string. During iteration, the pointer must only be passed back again to this function; passing it to any other function in this library results in undefined behavior. If there are no more chunks to be read from value, then next will be set to the next item after this string; if value points to the last item, then next will be invalid.

    │ │ │
    Note
    This function does not perform UTF-8 validation on the incoming text string.
    │ │ │ -
    See also
    cbor_value_dup_text_string(), cbor_value_copy_text_string(), cbor_value_caculate_string_length(), cbor_value_get_byte_string_chunk()
    │ │ │ +
    See also
    cbor_value_dup_text_string(), cbor_value_copy_text_string(), cbor_value_caculate_string_length(), cbor_value_get_byte_string_chunk()
    │ │ │ │ │ │ │ │ │ │ │ │ │ │ │

    ◆ cbor_value_get_type()

    │ │ │ │ │ │
    │ │ │ @@ -966,17 +966,17 @@ │ │ │ │ │ │ │ │ │ │ │ │
    │ │ │ │ │ │

    Returns true if the iterator value is valid and points to a CBOR byte string.

    │ │ │

    CBOR byte strings are binary data with no specified encoding or format.

    │ │ │ -
    See also
    cbor_value_is_valid(), cbor_value_get_string_length(), cbor_value_calculate_string_length(), cbor_value_copy_byte_string(), cbor_value_dup_byte_string()
    │ │ │ +
    See also
    cbor_value_is_valid(), cbor_value_get_string_length(), cbor_value_calculate_string_length(), cbor_value_copy_byte_string(), cbor_value_dup_byte_string()
    │ │ │ │ │ │ -

    Referenced by cbor_value_copy_byte_string(), cbor_value_dup_byte_string(), and cbor_value_get_string_length().

    │ │ │ +

    Referenced by cbor_value_copy_byte_string(), cbor_value_dup_byte_string(), and cbor_value_get_string_length().

    │ │ │ │ │ │
    │ │ │ │ │ │ │ │ │

    ◆ cbor_value_is_double()

    │ │ │ │ │ │
    │ │ │ @@ -1204,17 +1204,17 @@ │ │ │ │ │ │ │ │ │ │ │ │
    │ │ │ │ │ │

    Returns true if the iterator value is valid and points to a CBOR text string.

    │ │ │

    CBOR text strings are UTF-8 encoded and usually contain human-readable text.

    │ │ │ -
    See also
    cbor_value_is_valid(), cbor_value_get_string_length(), cbor_value_calculate_string_length(), cbor_value_copy_text_string(), cbor_value_dup_text_string()
    │ │ │ +
    See also
    cbor_value_is_valid(), cbor_value_get_string_length(), cbor_value_calculate_string_length(), cbor_value_copy_text_string(), cbor_value_dup_text_string()
    │ │ │ │ │ │ -

    Referenced by cbor_value_copy_text_string(), cbor_value_dup_text_string(), cbor_value_get_string_length(), cbor_value_get_text_string_chunk(), cbor_value_map_find_value(), and cbor_value_text_string_equals().

    │ │ │ +

    Referenced by cbor_value_copy_text_string(), cbor_value_dup_text_string(), cbor_value_get_string_length(), cbor_value_get_text_string_chunk(), cbor_value_map_find_value(), and cbor_value_text_string_equals().

    │ │ │ │ │ │
    │ │ │ │ │ │ │ │ │

    ◆ cbor_value_is_undefined()

    │ │ │ │ │ │
    │ │ ├── ./usr/share/doc/libtinycbor-dev/html/a00054.html │ │ │ @@ -108,17 +108,17 @@ │ │ │
    │ │ │ │ │ │

    Converts the current CBOR type pointed by value to its textual representation and writes it to the stream by calling the streamFunction.

    │ │ │

    If an error occurs, this function returns an error code similar to Parsing CBOR streams.

    │ │ │

    The textual representation can be controlled by the flags parameter (see CborPrettyFlags for more information).

    │ │ │

    If no error ocurred, this function advances value to the next element. Often, concatenating the text representation of multiple elements can be done by appending a comma to the output stream in between calls to this function.

    │ │ │

    The streamFunction function will be called with the token value as the first parameter and a printf-style format string as the second, with a variable number of further parameters.

    │ │ │ -
    See also
    cbor_value_to_pretty(), cbor_value_to_json_advance()
    │ │ │ +
    See also
    cbor_value_to_pretty(), cbor_value_to_json_advance()
    │ │ │ │ │ │ -

    Referenced by cbor_value_to_pretty_advance(), and cbor_value_to_pretty_advance_flags().

    │ │ │ +

    Referenced by cbor_value_to_pretty_advance(), and cbor_value_to_pretty_advance_flags().

    │ │ │ │ │ │
    │ │ │ │ │ │ │ │ │ │ │ │