/tinycbor-2.7.6/src/ |
D | open_memstream.c | 73 if (ptr == NULL) in write_to_buffer() 96 if (b == NULL) in open_memstream() 97 return NULL; in open_memstream() 101 *bufptr = NULL; in open_memstream() 105 return funopen(b, NULL, write_to_buffer, NULL, close_buffer); in open_memstream() 108 NULL, in open_memstream() 110 NULL, in open_memstream()
|
D | cborparser_dup_string.c | 39 * bytes copied is stored in \a len (those variables must not be NULL). 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 70 * bytes copied is stored in \a len (those variables must not be NULL). 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 97 CborError err = _cbor_value_copy_string(value, NULL, buflen, NULL); in _cbor_value_dup_string()
|
D | cborparser.c | 390 * are: integers, tags, simple types (including boolean, null and undefined 419 return _cbor_value_copy_string(it, NULL, &len, it); in advance_recursive() 596 * Returns true if the iterator \a value is valid and points to a CBOR null type. 633 * type (other than true, false, null and undefined). 905 return _cbor_value_copy_string(value, NULL, len, NULL); in cbor_value_calculate_string_length() 989 /* we are just trying to write a NULL byte here,, but this is hard in iterate_string_chunks() 992 * we have a valid buffer its ok to write a NULL here */ in iterate_string_chunks() 1011 * of \a buflen bytes. If \a buffer is a NULL pointer, this function will not 1024 * the buffer is large enough, this function will insert a null byte after the 1028 * The \a next pointer, if not null, will be updated to point to the next item [all …]
|
D | parsetags.pl | 37 "Null" => "null",
|
D | cborencoder.c | 148 * uint8_t *buf = NULL; 154 * if (nbuf == NULL) 183 * return NULL; 394 * Appends the null-terminated text string \a string to the CBOR stream 396 * TinyCBOR makes no verification of correctness. The terminating null is not 583 * Appends the CBOR type representing a null value to the CBOR stream provided
|
D | cbortojson.c | 104 * conversion will be "null". In addition, the distinction between half-, 157 … TypeWasNotNative = 0x100, /* anything but strings, boolean, null, arrays and maps */ 416 if (memstream == NULL) in stringify_map_key() 420 if (unlikely(fclose(memstream) < 0 || *key == NULL)) in stringify_map_key() 582 if (fprintf(out, "null") < 0) in value_to_json() 622 if (fprintf(out, "null") < 0) in value_to_json()
|
D | cborpretty.c | 97 * \par Null: 98 * \c null 382 if (fprintf(out, "null") < 0) in value_to_pretty()
|
D | cbor.dox | 85 * \value CborNullType Type encodes a null
|
D | cborvalidation.c | 342 tagData = NULL; in validate_tag() 346 tagData = NULL; in validate_tag()
|
/tinycbor-2.7.6/tools/json2cbor/ |
D | json2cbor.c | 59 if (buffer == NULL) in decode_base64_generic() 60 return NULL; in decode_base64_generic() 98 return NULL; in decode_base64_generic() 155 if (buffer == NULL) in decode_base16() 156 return NULL; in decode_base16() 166 return NULL; in decode_base16() 176 return NULL; in decode_base16() 200 if (asprintf(&metadatakey, "%s%s", item->string, meta_data_marker) < 0 || metadatakey == NULL) in get_meta_data() 201 return NULL; in get_meta_data() 209 struct MetaData result = { 0, {NULL}, CborInvalidType, false }; in parse_meta_data() [all …]
|
/tinycbor-2.7.6/ |
D | Makefile.configure | 27 $(CC) -xc $($(subst check-,CCFLAGS-,$@)) -o /dev/null - $(if $(V),,>/dev/null 2>&1); \
|
D | Makefile | 43 BUILD_SHARED = $(shell file -L /bin/sh 2>/dev/null | grep -q ELF && echo 1) 72 GIT_DIR := $(strip $(shell git -C $(SRCDIR). rev-parse --git-dir 2> /dev/null)) 86 check_qmake = $(strip $(shell $(1) -query QT_VERSION 2>/dev/null | cut -b1))
|
D | .travis.yml | 60 TESTRUNNER=`which valgrind 2>/dev/null`
|
/tinycbor-2.7.6/tests/tojson/ |
D | tst_tojson.cpp | 106 QTest::newRow("null") << raw("\xf6") << "null"; in addFixedData() 129 // infinities and NaN are not supported in JSON, they convert to null in addFixedData() 130 QTest::newRow("nan_f16") << raw("\xf9\x7e\x00") << "null"; in addFixedData() 131 QTest::newRow("nan_f") << raw("\xfa\x7f\xc0\0\0") << "null"; in addFixedData() 132 QTest::newRow("nan") << raw("\xfb\x7f\xf8\0\0\0\0\0\0") << "null"; in addFixedData() 133 QTest::newRow("-inf_f") << raw("\xfa\xff\x80\0\0") << "null"; in addFixedData() 134 QTest::newRow("-inf_f16") << raw("\xf9\xfc\x00") << "null"; in addFixedData() 135 QTest::newRow("-inf") << raw("\xfb\xff\xf0\0\0\0\0\0\0") << "null"; in addFixedData() 136 QTest::newRow("+inf_f") << raw("\xfa\x7f\x80\0\0") << "null"; in addFixedData() 137 QTest::newRow("+inf_f16") << raw("\xf9\x7c\x00") << "null"; in addFixedData() [all …]
|
/tinycbor-2.7.6/examples/ |
D | simplereader.c | 14 return NULL; in readfile() 16 return NULL; in readfile() 108 puts("null"); in dumprecursive()
|
/tinycbor-2.7.6/tools/cbordump/ |
D | cbordump.c | 38 if (old == NULL) { in xrealloc() 55 static uint8_t *buffer = NULL; in dumpFile()
|
/tinycbor-2.7.6/tests/parser/ |
D | tst_parser.cpp | 286 QTest::newRow("null") << raw("\xf6") << "null"; in addFixedData() 541 QTest::newRow("tag256+null") << raw("\xd9\1\0\xf6") << "256(null)"; in addTagsData() 1145 QTest::newRow("null") << raw("\xf6") << "null" << false; in stringCompare_data() 1580 QTest::newRow("string-chunk-null") << raw("\x81\x7f\xf6\xff") << 0 << CborErrorIllegalType; in addValidationData() 1662 QTest::newRow("null") << raw("\xf6") << int(CborValidateCanonicalFormat) << CborNoError; in strictValidation_data() 1894 …QTest::newRow("tag-55799-null") << raw("\xd9\xd9\xf7\xf6") << int(CborValidateStrictMode) << CborN… in strictValidation_data() 1934 …QTest::newRow("excluded-map-null") << raw("\xa1\xf6\1") << int(CborValidateMapKeysAreString) << Cb… in strictValidation_data()
|
/tinycbor-2.7.6/include/tinycbor/ |
D | cbor.h | 296 /* Null & undefined type */
|
/tinycbor-2.7.6/tests/encoder/ |
D | tst_encoder.cpp | 359 QTest::newRow("null") << raw("\xf6") << QVariant::fromValue<void *>(nullptr); in addFixedData()
|