7#include <QtCore/qtypes.h>
12#define CBOR_API inline
13#define CBOR_PRIVATE_API inline
14#define CBOR_NO_PARSER_API 1
26 fprintf(out,
"\n // %s", comment);
29 static CborError
callback(
void *self,
const void *
ptr,
size_t len, CborEncoderAppendType
t)
32 auto data =
static_cast<const char *
>(
ptr);
33 if (
t == CborEncoderAppendCborData) {
35 that->putByte(*
data++);
38 that->putChar(*
data++);
53 void putByte(uint8_t
c)
56 fprintf(out,
" 0x%02x, ",
c);
63 fprintf(out,
" '\\x%x',", uint8_t(
c));
65 fprintf(out,
" uchar('\\x%x'),", uint8_t(
c));
66 else if (
c ==
'\'' ||
c ==
'\\')
67 fprintf(out,
" '\\%c',",
c);
69 fprintf(out,
" '%c', ",
c);
static CborError callback(void *self, const void *ptr, size_t len, CborEncoderAppendType t)
void nextItem(const char *comment=nullptr)
static ControlElement< T > * ptr(QWidget *widget)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QTextStream out(stdout)
[7]