10#define CBOR_API inline
11#define CBOR_PRIVATE_API inline
12#define CBOR_NO_PARSER_API 1
24 fprintf(out,
"\n // %s", comment);
27 static CborError
callback(
void *self,
const void *
ptr,
size_t len, CborEncoderAppendType
t)
30 auto data =
static_cast<const char *
>(
ptr);
31 if (
t == CborEncoderAppendCborData) {
33 that->putByte(*
data++);
36 that->putChar(*
data++);
51 void putByte(uint8_t
c)
54 fprintf(out,
" 0x%02x, ",
c);
61 fprintf(out,
" '\\x%x',", uint8_t(
c));
63 fprintf(out,
" uchar('\\x%x'),", uint8_t(
c));
64 else if (
c ==
'\'' ||
c ==
'\\')
65 fprintf(out,
" '\\%c',",
c);
67 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]