Home
last modified time | relevance | path

Searched refs:data (Results 1 – 17 of 17) sorted by relevance

/tinycbor-2.7.6/tests/tojson/
Dtst_tojson.cpp79 template <size_t N> QByteArray raw(const char (&data)[N]) in raw()
81 return QByteArray::fromRawData(data, N - 1); in raw()
213 void compareOne_real(const QByteArray &data, const QString &expected, int flags, int line) in compareOne_real() argument
218 …CborError err = cbor_parser_init(reinterpret_cast<const quint8 *>(data.constData()), data.length()… in compareOne_real()
232 #define compareOne(data, expected, flags) \ argument
233 compareOne_real(data, expected, flags, __LINE__); \
249 QFETCH(QByteArray, data); in fixed()
252 compareOne(data, expected, 0); in fixed()
290 QFETCH(QByteArray, data); in arrays()
293 compareOne("\x81" + data, '[' + expected + ']', 0); in arrays()
[all …]
/tinycbor-2.7.6/tests/parser/
Dtst_parser.cpp154 template <size_t N> QByteArray raw(const char (&data)[N]) in raw()
156 return QByteArray::fromRawData(data, N - 1); in raw()
175 void compareOne_real(const QByteArray &data, const QString &expected, int line, int n = -1) in compareOne_real() argument
180 …CborError err = cbor_parser_init(reinterpret_cast<const quint8 *>(data.constData()), data.length()… in compareOne_real()
231 #define compareOne(data, expected) compareOne_real(data, expected, __LINE__) argument
232 #define compareOneSize(n, data, expected) compareOne_real(data, expected, __LINE__, n) argument
387 QFETCH(QByteArray, data); in integers()
395 …CborError err = cbor_parser_init(reinterpret_cast<const quint8 *>(data.constData()), data.length()… in integers()
434 QFETCH(QByteArray, data); in fixed()
437 compareOne(data, expected); in fixed()
[all …]
/tinycbor-2.7.6/tools/json2cbor/
Djson2cbor.c247 uint8_t *data; in decode_json_with_metadata() local
250 data = decode_base64(item->valuestring, &len); in decode_json_with_metadata()
252 data = decode_base16(item->valuestring, &len); in decode_json_with_metadata()
254 data = decode_base64url(item->valuestring + 1, &len); in decode_json_with_metadata()
256 data = decode_base64url(item->valuestring, &len); in decode_json_with_metadata()
258 if (data != NULL) { in decode_json_with_metadata()
259 CborError err = cbor_encode_byte_string(encoder, data, len); in decode_json_with_metadata()
260 free(data); in decode_json_with_metadata()
336 encoder->data.ptr = newbuffer + (container.data.ptr - buffer); in decode_json()
/tinycbor-2.7.6/src/
Dcbor_mbuf_writer.c26 cbor_mbuf_writer(struct cbor_encoder_writer *arg, const char *data, int len) in cbor_mbuf_writer() argument
31 rc = os_mbuf_append(cb->m, data, len); in cbor_mbuf_writer()
Dcbor_buf_writer.c33 cbor_buf_writer(struct cbor_encoder_writer *arg, const char *data, int len) in cbor_buf_writer() argument
41 memcpy(cb->ptr, data, len); in cbor_buf_writer()
Dopen_memstream.c59 static RetType write_to_buffer(void *cookie, const char *data, LenType len) in write_to_buffer() argument
79 memcpy(ptr + *b->len, data, len); in write_to_buffer()
Dcbor_buf_reader.c71 size_t data) in cbor_buf_reader_init() argument
80 cb->r.message_size = data; in cbor_buf_reader_init()
Dtags.txt14 24;EncodedCbor;ByteString;Encoded CBOR data item
Dcborencoder.c243 static inline CborError append_to_buffer(CborEncoder *encoder, const void *data, size_t len) in append_to_buffer() argument
245 return encoder->writer->write(encoder->writer, data, len); in append_to_buffer()
Dcbor.dox50 * data stream into JSON.
113 * \value CborSignatureTag Item contains CBOR-encoded data.
/tinycbor-2.7.6/include/tinycbor/
Dcbor_encoder_writer.h34 typedef int (cbor_encoder_write)(struct cbor_encoder_writer *, const char *data, int len);
Dcbor_buf_reader.h36 size_t data);
Dcbor_buf_writer.h34 size_t data);
Dcbor_cnt_writer.h41 cbor_cnt_writer(struct cbor_encoder_writer *arg, const char *data, int len) { in cbor_cnt_writer() argument
Dcbor.h164 typedef int (cbor_encoder_write)(struct cbor_encoder_writer *, const char *data, int len);
477 uint32_t data = (uint32_t)_cbor_value_decode_int64_internal(value); in cbor_value_get_float() local
478 memcpy(result, &data, sizeof(*result)); in cbor_value_get_float()
488 uint64_t data = _cbor_value_decode_int64_internal(value); in cbor_value_get_double() local
489 memcpy(result, &data, sizeof(*result)); in cbor_value_get_double()
/tinycbor-2.7.6/tests/encoder/
Dtst_encoder.cpp127 template <size_t N> QByteArray raw(const char (&data)[N]) in raw()
129 return QByteArray::fromRawData(data, N - 1); in raw()
279 uint8_t *bufptr = reinterpret_cast<quint8 *>(buffer.data()); in compare()
647 cbor_encoder_init(&encoder, reinterpret_cast<quint8 *>(buffer.data()), len, 0); in shortBuffer()
661 cbor_encoder_init(&encoder, reinterpret_cast<quint8 *>(buffer.data()), buffer.length(), 0); in tooShortArrays()
675 cbor_encoder_init(&encoder, reinterpret_cast<quint8 *>(buffer.data()), buffer.length(), 0); in tooShortMaps()
689 cbor_encoder_init(&encoder, reinterpret_cast<quint8 *>(buffer.data()), buffer.length(), 0); in tooBigArrays()
704 cbor_encoder_init(&encoder, reinterpret_cast<quint8 *>(buffer.data()), buffer.length(), 0); in tooBigMaps()
/tinycbor-2.7.6/
DDoxyfile367 # with only public data fields or simple typedef fields will be shown inline in
1528 # search data is written to a file for indexing by an external tool. With the