/tinycbor-2.7.6/src/ |
D | cborpretty.c | 60 * for the functions for CborParsing. In addition, if the C standard library 64 * These functions also perform UTF-8 validation in CBOR text strings. If they 104 * If NaN or infinite, the actual words \c NaN or \c infinite. 109 …* If the array length is indeterminate, an underscore ("_") appears immediately after the open… 113 …* If the map length is indeterminate, an underscore ("_") appears immediately after the openi… 120 if (r < 0) in hexDump() 133 if (uc < 0x80) { in utf8EscapedDump() 135 if (uc < 0x7f && uc >= 0x20 && uc != '\\' && uc != '"') { in utf8EscapedDump() 136 if (fprintf(out, "%c", (char)uc) < 0) in utf8EscapedDump() 165 if (fprintf(out, "\\%c", escaped) < 0) in utf8EscapedDump() [all …]
|
D | cborvalidation.c | 277 if (uc == ~0U) in validate_utf8_string() 287 * That means that if we've got here, the type is unknown */ in validate_simple_type() 288 if (simple_type < 32) in validate_simple_type() 300 if ((flags & CborValidateShortestIntegrals) == 0) in validate_number() 302 if (type >= CborHalfFloatType && type <= CborDoubleType) in validate_number() 307 if (err) in validate_number() 312 if (value >= Value8Bit) in validate_number() 314 if (value > 0xffU) in validate_number() 316 if (value > 0xffffU) in validate_number() 318 if (value > 0xffffffffU) in validate_number() [all …]
|
D | cborparser.c | 86 * if (cbor_parser_init(buffer, len, 0, &buffer, &value) != CborNoError) 88 * if (!cbor_value_is_integer(&value) || 101 * be represented in a variable of type \c{int}. If detecting that case is 120 * behavior if called after an error has been reported, and may crash. 139 * \if privatedocs 145 …* \li remaining: remaining items in this collection after this item or UINT32_MAX if length is u… 155 if (err) { in extract_length() 161 if (v != *len) in extract_length() 178 if (it->offset == parser->end) in preparse_value() 187 if (descriptor > Value64Bit) { in preparse_value() [all …]
|
D | cbortojson.c | 58 * indentation or line breaks. If those are necessary, they need to be applied 73 * for the functions for CborParsing. In addition, if the C standard library 77 * These functions also perform UTF-8 validation in CBOR text strings. If they 101 * 2<sup>53</sup>-1] and is not capable of representing NaN or infinite. If the 103 * lose precision. If the input was NaN or infinite, the result of the 108 * If enabled, the original value and original type are stored in the metadata. 119 * If enabled, the original type is stored in the metadata. 123 * converting to JSON. However, if the CborConvertObeyByteStringTags option is 128 * If the CborConvertTagsToObjects option is active, then the tag and the 129 * tagged value are converted to to a JSON object. Otherwise, if enabled, the [all …]
|
D | cborparser_dup_string.c | 41 * If the iterator \a value does not point to a text string, the behaviour is 45 * If \c malloc returns a NULL pointer, this function will return error 51 * The \a next pointer, if not null, will be updated to point to the next item 52 * after this string. If \a value points to the last item, then \a next will be 72 * If the iterator \a value does not point to a byte string, the behaviour is 76 * If \c malloc returns a NULL pointer, this function will return error 82 * The \a next pointer, if not null, will be updated to point to the next item 83 * after this string. If \a value points to the last item, then \a next will be 98 if (err) in _cbor_value_dup_string() 103 if (!*buffer) { in _cbor_value_dup_string() [all …]
|
D | cborencoder.c | 89 * If the encoding was successful, they return CborNoError. Some functions do 95 * encode the item being appended. If that is not possible, they return 120 * if (!err) 123 * if (!err) 126 * if (!err) 129 * if (!err) 138 * deals with dynamically growing the buffer if the initial allocation wasn't 154 * if (nbuf == NULL) 164 * if (err && err != CborErrorOutOfMemory) 172 * if (more_size) { [all …]
|
D | parsetags.pl | 47 next if /^$/; 70 if (scalar @types == 0); 103 die("Too many match types for tag $n") if $shift == 32; 105 $actualtype = "($actualtype+1)" if $type eq "Integer"; 106 $typemask .= " | " if $typemask ne ""; 107 $typemask .= "((uint8_t)$actualtype << $shift)" if $shift; 111 $typemask = "0U" if $typemask eq "";
|
D | open_memstream.c | 37 #if defined(__unix__) || defined(__APPLE__) 66 if (unlikely(add_check_overflow(*b->len, len, &newsize))) in write_to_buffer() 69 if (newsize > b->alloc) { in write_to_buffer() 73 if (ptr == NULL) in write_to_buffer() 87 if (*b->ptr) in close_buffer() 96 if (b == NULL) in open_memstream()
|
D | cborpretty_stdio.c | 45 * representation and writes it to the \a out stream. If an error occurs, this 53 * representation and writes it to the \a out stream. If an error occurs, this 56 * If no error ocurred, this function advances \a value to the next element. 69 * representation and writes it to the \a out stream. If an error occurs, this 75 * If no error ocurred, this function advances \a value to the next element.
|
/tinycbor-2.7.6/tools/json2cbor/ |
D | json2cbor.c | 59 if (buffer == NULL) in decode_base64_generic() 66 if (reverse_alphabet[in[0]] < 0 || reverse_alphabet[in[1]] < 0) { in decode_base64_generic() 67 if (in[0] == '\0') in decode_base64_generic() 74 if (in[2] == '=' || in[2] == '\0') { in decode_base64_generic() 75 if (in[2] == '=' && (in[3] != '=' || in[4] != '\0')) in decode_base64_generic() 79 } else if (in[3] == '=' || in[3] == '\0') { in decode_base64_generic() 80 if (in[3] == '=' && in[4] != '\0') in decode_base64_generic() 96 if (!done) { in decode_base64_generic() 155 if (buffer == NULL) in decode_base16() 160 if (c >= '0' && c <= '9') { in decode_base16() [all …]
|
/tinycbor-2.7.6/ |
D | Doxyfile | 38 # could be handy for archiving the generated documentation or if some version 57 # into which the generated documentation will be written. If a relative path is 58 # entered, it will be relative to the location where doxygen was started. If 63 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- 73 # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII 74 # characters to appear in the names of generated files. If set to NO, non-ASCII 96 # If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member 103 # If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief 106 # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 113 # used to form the text in various listings. Each string in this list, if found [all …]
|
D | .appveyor.yml | 12 …if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (call "C:\Program Files (x86)\Microsof… 14 …if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (call "C:\Program Files (x86)\Microsof… 16 …if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (call "C:\Program Files (x86)\Microsof… 25 if /i "%tests%"=="1" qmake CONFIG-=release CONFIG+=debug 27 if /i "%tests%"=="1" nmake -nologo -s 30 if /i "%tests%"=="1" nmake -s -nologo check 32 if /i "%tests%"=="0" echo Tests skipped.
|
D | maketag.pl | 28 if (scalar @result) { 53 exit ($? >> 8) if $?; 58 exit ($? >> 8) if $?; 62 if (scalar @v < 3) { 78 if (open APPVEYORYML, "<", ".appveyor.yml") { 91 print "Don't forget to create the docs.\n" if $v[2] == 1;
|
D | Makefile.nmake | 36 -if not exist lib\NUL md lib 43 if exist tests\Makefile (cd tests & $(MAKE) clean) 45 if exist tests\Makefile (cd tests & $(MAKE) distclean)
|
D | Makefile.configure | 26 $(if $(V),,@)if printf "$($(subst check-,PROGRAM-,$@))" | \ 27 $(CC) -xc $($(subst check-,CCFLAGS-,$@)) -o /dev/null - $(if $(V),,>/dev/null 2>&1); \
|
D | Makefile | 11 LDFLAGS = $(if $(gc_sections-pass),$(LDFLAGS_GCSECTIONS)) 100 # if open_memstream is unavailable on the system, try to implement our own 125 $(if $(subst 0,,$(BUILD_STATIC)),lib/libtinycbor.a) \ 126 $(if $(subst 0,,$(BUILD_SHARED)),lib/libtinycbor.so) \ 128 all: $(if $(JSON2CBOR_SOURCES),bin/json2cbor)
|
/tinycbor-2.7.6/examples/ |
D | simplereader.c | 13 if (!f) in readfile() 15 if (fstat(fileno(f), &st) == -1) in readfile() 50 if (err) in dumprecursive() 53 if (err) in dumprecursive() 56 if (err) in dumprecursive() 74 if (err) in dumprecursive() 86 if (err) in dumprecursive() 124 if (false) { in dumprecursive() 148 if (err) in dumprecursive() 156 if (argc == 1) { in main() [all …]
|
/tinycbor-2.7.6/include/tinycbor/ |
D | utf8_p.h | 36 if (n == 0) in get_utf8() 40 if (uc < 0x80) { in get_utf8() 48 if (unlikely(uc <= 0xC1)) in get_utf8() 50 if (uc < 0xE0) { in get_utf8() 55 } else if (uc < 0xF0) { in get_utf8() 60 } else if (uc < 0xF5) { in get_utf8() 69 if (n < charsNeeded - 1) in get_utf8() 74 if ((b & 0xc0) != 0x80) in get_utf8() 79 if (charsNeeded > 2) { in get_utf8() 82 if ((b & 0xc0) != 0x80) in get_utf8() [all …]
|
D | compilersupport_p.h | 59 #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L || __cpp_static_assert >= 200410 66 #if __STDC_VERSION__ >= 199901L || defined(__cplusplus) 78 #if !defined(UINT32_MAX) || !defined(INT64_MAX) 93 #if (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)) || \ 95 # if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ 144 # if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && __BYTE_ORDER__ == __ORDER_BIG_E… 184 #if ((defined(__GNUC__) && (__GNUC__ >= 5)) && !defined(__INTEL_COMPILER)) || __has_builtin(__built… in add_check_overflow() 205 if (exp == 1024) { in encode_half() 209 } else if (exp >= 16) { in encode_half() 213 } else if (exp >= -14) { in encode_half() [all …]
|
D | extract_number_p.h | 58 if (additional_information < Value8Bit) { in extract_number() 62 if (unlikely(additional_information > Value64Bit)) in extract_number() 66 if (unlikely(bytesNeeded > (size_t)(p->end - *offset))) { in extract_number() 68 } else if (bytesNeeded == 1) { in extract_number() 70 } else if (bytesNeeded == 2) { in extract_number() 72 } else if (bytesNeeded == 4) { in extract_number()
|
D | cbor.h | 61 # if defined(__cplusplus) 66 # if defined(_MSC_VER) 348 if (value->flags & CborIteratorFlag_NegativeInteger) in cbor_value_get_int64() 357 if (value->flags & CborIteratorFlag_NegativeInteger) in cbor_value_get_int() 388 if (!cbor_value_is_length_known(value)) in cbor_value_get_string_length() 392 if (*length != v) in cbor_value_get_string_length() 443 if (!cbor_value_is_length_known(value)) in cbor_value_get_array_length() 447 if (*length != v) in cbor_value_get_array_length() 455 if (!cbor_value_is_length_known(value)) in cbor_value_get_map_length() 459 if (*length != v) in cbor_value_get_map_length()
|
D | math_support_p.h | 44 if (exp == 0) val = ldexp(mant, -24); in decode_half() 45 else if (exp != 31) val = ldexp(mant + 1024, exp - 25); in decode_half()
|
/tinycbor-2.7.6/tools/cbordump/ |
D | cbordump.c | 38 if (old == NULL) { in xrealloc() 59 if (bufsize == buflen) in dumpFile() 64 if (n == 0) { in dumpFile() 65 if (!ferror(in)) in dumpFile() 75 if (!err) { in dumpFile() 76 if (printJosn) in dumpFile() 80 if (!err) in dumpFile() 83 if (!err && value.offset != (int)buflen) in dumpFile() 85 if (err) in dumpFile() 149 if (!*fname) { in main() [all …]
|
/tinycbor-2.7.6/tests/encoder/ |
D | tst_encoder.cpp | 28 #if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0) 215 if (type == qMetaTypeId<NegativeInteger>()) in encodeVariant() 217 if (type == qMetaTypeId<SimpleType>()) in encodeVariant() 219 #if QT_VERSION < QT_VERSION_CHECK(5, 9, 0) in encodeVariant() 220 if (type == qMetaTypeId<Float16Standin>()) in encodeVariant() 223 if (type == qMetaTypeId<qfloat16>()) in encodeVariant() 226 if (type == qMetaTypeId<Tag>()) { in encodeVariant() 228 if (err && !isOomError(err)) in encodeVariant() 232 if (type == QVariant::List || type == qMetaTypeId<IndeterminateLengthArray>()) { in encodeVariant() 236 if (type == qMetaTypeId<IndeterminateLengthArray>()) { in encodeVariant() [all …]
|
/tinycbor-2.7.6/tests/parser/ |
D | tst_parser.cpp | 128 if (ourType == CborByteStringType) { in parseOneChunk() 132 if (err) in parseOneChunk() 135 if (bytes) in parseOneChunk() 139 } else if (ourType == CborTextStringType) { in parseOneChunk() 143 if (err) in parseOneChunk() 146 if (text) in parseOneChunk() 183 if (cbor_value_get_type(&first) == CborArrayType) { in compareOne_real() 185 if (n >= 0) { in compareOne_real() 193 } else if (cbor_value_get_type(&first) == CborMapType) { in compareOne_real() 195 if (n >= 0) { in compareOne_real() [all …]
|