Home
last modified time | relevance | path

Searched full:a (Results 1 – 25 of 52) sorted by relevance

123

/tinycbor-2.7.6/src/
Dcborparser.c5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50 * TinyCBOR provides functions for pull-based stream parsing of a CBOR-encoded
51 * payload. The main data type for the parsing is a CborValue, which behaves
53 * initialized with a call to cbor_parser_init() and is usually used to extract
57 * Each call to cbor_value_enter_container() must be matched by a call to
60 * The example below initializes a CborParser object, begins the parsing with a
61 * CborValue and decodes a single integer:
76 * from a source trusted to send one properly-encoded integer. The following
95 * Note, in the example above, that one can't distinguish a parsing failure
[all …]
Dcbor.dox5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27 * The TinyCBOR $(VERSION) library is a small CBOR encoder and decoder library,
49 * The <cborjson.h> file contains the routines that are used to convert a CBOR
68 * This variable is a constant used to indicate that the length of the map or
78 * \value CborByteStringType Type is a string of arbitrary raw bytes
79 * \value CborTextStringType Type is a text string encoded in UTF-8
80 * \value CborArrayType Type is a CBOR array
81 …* \value CborMapType Type is a CBOR map (an associative container with key and value…
82 …* \value CborTagType Type is a CBOR tag (a 64-bit integer describing the item that f…
[all …]
Dcborencoder.c5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46 * CborEncoder is used to encode data into a CBOR stream. The outermost
62 * The example below initializes a CborEncoder object with a buffer and encodes
63 * a single integer.
74 * below creates a CBOR map with one element: a key "foo" and a boolean value.
88 * All functions operating on CborEncoder return a condition of type CborError.
199 * Initializes a CborEncoder structure \a encoder by pointing it to buffer \a
200 * buffer of size \a size. The \a flags field is currently unused and must be
220 * but if in the future, any function starts returning a non-OOM error, this will need
[all …]
Dcborparser_dup_string.c5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37 * Allocates memory for the string pointed by \a value and copies it into this
38 * buffer. The pointer to the buffer is stored in \a buffer and the number of
39 * bytes copied is stored in \a len (those variables must not be NULL).
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
48 * On success, \c{*buffer} will contain a valid pointer that must be freed by
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
[all …]
Dcborpretty_stdio.c5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44 * Converts the current CBOR type pointed by \a value to its textual
45 * representation and writes it to the \a out stream. If an error occurs, this
52 * Converts the current CBOR type pointed by \a value to its textual
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.
58 * done by appending a comma to the output stream.
68 * Converts the current CBOR type pointed by \a value to its textual
69 * representation and writes it to the \a out stream. If an error occurs, this
[all …]
Dcborerrorstrings.c5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
42 * a lack of buffer space, which may not be a fatal condition if the buffer can
54 * \value CborErrorUnexpectedBreak A CBOR break byte was found where not expected
56 …* \value CborErrorIllegalType An invalid type was found while parsing a chunked CBOR stri…
58 …* \value CborErrorIllegalSimpleType An illegal encoding of a CBOR Simple Type of value less tha…
69 …* \value CborErrorJsonObjectKeyIsAggregate Conversion to JSON failed because the key in a map is a
70 …ErrorJsonObjectKeyNotString Conversion to JSON failed because the key in a map is not a text string
78 * Returns the error string corresponding to the CBOR error condition \a error.
93 …return _("unknown length (attempted to get the length of a map/array/string of indeterminate lengt… in cbor_error_string()
[all …]
Dcbortojson.c5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
55 * CBOR to JSON", though it has a few differences. They are noted below.
57 * These functions produce a "minified" JSON output, with no spacing,
59 * in a post-processing phase.
62 * conversion is usually lossy. For that reason, TinyCBOR supports adding a set
63 * of metadata JSON values that can be used by a JSON-to-CBOR converter to
66 * The TinyCBOR library does not provide a way to convert from JSON
67 * representation back to encoded form. However, it provides a tool called
78 * encounter a sequence of bytes that not permitted in UTF-8, they will return
[all …]
Dcborpretty.c5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50 * CborValue object to a text representation. This module attempts to follow
52 * has a few differences. They are noted below.
54 * TinyCBOR does not provide a way to convert from the text representation back
55 * to encoded form. To produce a text form meant to be parsed, CborToJson is
65 * encounter a sequence of bytes that not permitted in UTF-8, they will return
70 * remain stable. A future update of TinyCBOR may produce different output for
106 …ed by "f" and half-float values suffixed by "f16" (doubles have no suffix). A dot is always presen…
112 * by a colon (":"), enclosed in curly braces ("{" and "}").
[all …]
Dcborvalidation.c5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
59 * The CborValidationFlags enum contains flags that control the validation of a
103 * types only require a specification. The official list can be obtained from
113 * require a specification. Finally, all other tags can be registered on a
648 * Performs a full validation controlled by the \a flags options of the CBOR
649 * stream pointed by \a it and returns the error it found. If no error was
653 * If \a flags is CborValidateBasic, the result should be the same as
Dcborencoder_close_container_checked.c5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Dparsetags.pl4 ## Permission is hereby granted, free of charge, to any person obtaining a copy
16 ## FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
59 my @tagnumbers = sort { $a <=> $b } keys %tags;
/tinycbor-2.7.6/
DDoxyfile4 # doxygen (www.doxygen.org) for a project.
6 # All text after a double hash (##) is considered a comment and is placed in
9 # All text after a single hash (#) is considered a comment and will be ignored.
29 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
32 # title of most generated pages and in a few other places.
37 # The PROJECT_NUMBER tag can be used to enter a project or revision number. This
44 # for a project that appears at the top of each page and should give viewer a
57 # into which the generated documentation will be written. If a relative path is
66 # option can be useful when feeding doxygen a huge amount of source files, where
104 # description of a member or function before the detailed description
[all …]
DLICENSE5 Permission is hereby granted, free of charge, to any person obtaining a copy
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
DMakefile60 BINLIBRARY=lib/libtinycbor.a
61 INSTALL_TARGETS += $(libdir)/libtinycbor.a
92 QMAKE := @echo >&2 $(MAKEFILE): Cannot find a Qt 5 qmake; false
125 $(if $(subst 0,,$(BUILD_STATIC)),lib/libtinycbor.a) \
137 lib/libtinycbor.a: $(TINYCBOR_SOURCES:.c=.o)
198 $(RM) lib/libtinycbor.a
D.travis.yml51 lib/libtinycbor.a
52 - size lib/libtinycbor.a
/tinycbor-2.7.6/include/tinycbor/
Dcborconstants_p.h8 * with the License. You may obtain a copy of the License at
38 MapType = 5U, /* a.k.a. object */
53 SimpleTypeInNextByte = 24, /* not really a simple type */
Dcborinternal_p.h5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
49 MapType = 5U, /* a.k.a. object */
64 SimpleTypeInNextByte = 24, /* not really a simple type */
Dconfig.h8 * with the License. You may obtain a copy of the License at
22 /** This option specifies whether a check user exists for a cbor encoder **/
Dcbor_cnt_writer.h8 * with the License. You may obtain a copy of the License at
30 /* use this count writer if you want to try out a cbor encoding to see
33 * in a buffer. Its much easier to understand this way (for me)
Dassert_p.h5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Dcbor_encoder_writer.h5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Dcompilersupport_p.h5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
67 /* inline is a keyword */
160 /* C-style const_cast without triggering a warning with -Wcast-qual */
Dcborjson.h5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/tinycbor-2.7.6/tests/cpp/
Dtst_cpp.cpp5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35 // This is a compilation-only test.
/tinycbor-2.7.6/tools/cbordump/
Dcbordump.c5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
17 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
132 " -c Print a CBOR dump (see RFC 7049) (default)\n" in main()
133 " -j Print a JSON equivalent version\n" in main()

123