Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qcborstreamwriter.cpp File Reference
#include "qcborstreamwriter.h"
#include <private/qcborcommon_p.h>
#include <private/qnumeric_p.h>
#include <qbuffer.h>
#include <qdebug.h>
#include <qstack.h>
#include <cborencoder.c>
+ Include dependency graph for qcborstreamwriter.cpp:

Go to the source code of this file.

Classes

class  QCborStreamWriterPrivate
 

Macros

#define CBOR_NO_PARSER_API
 
#define CBOR_ENCODER_WRITER_CONTROL   1
 
#define CBOR_ENCODER_WRITE_FUNCTION   qt_cbor_encoder_write_callback
 
#define CBOR_ENCODER_NO_CHECK_USER
 

Functions

static QT_BEGIN_NAMESPACE CborError qt_cbor_encoder_write_callback (void *token, const void *data, size_t len, CborEncoderAppendType)
 
QT_WARNING_PUSH static QT_WARNING_POP CborError cbor_encoder_close_container_checked (CborEncoder *, const CborEncoder *)
 
static CborError cbor_encode_float_as_half_float (CborEncoder *, float)
 
 Q_DECLARE_TYPEINFO (CborEncoder, Q_PRIMITIVE_TYPE)
 

Macro Definition Documentation

◆ CBOR_ENCODER_NO_CHECK_USER

#define CBOR_ENCODER_NO_CHECK_USER

Definition at line 19 of file qcborstreamwriter.cpp.

◆ CBOR_ENCODER_WRITE_FUNCTION

#define CBOR_ENCODER_WRITE_FUNCTION   qt_cbor_encoder_write_callback

Definition at line 18 of file qcborstreamwriter.cpp.

◆ CBOR_ENCODER_WRITER_CONTROL

#define CBOR_ENCODER_WRITER_CONTROL   1

Definition at line 17 of file qcborstreamwriter.cpp.

◆ CBOR_NO_PARSER_API

#define CBOR_NO_PARSER_API

Definition at line 6 of file qcborstreamwriter.cpp.

Function Documentation

◆ cbor_encode_float_as_half_float()

static CborError cbor_encode_float_as_half_float ( CborEncoder *  ,
float   
)
static

Definition at line 35 of file qcborstreamwriter.cpp.

◆ cbor_encoder_close_container_checked()

QT_WARNING_PUSH static QT_WARNING_POP CborError cbor_encoder_close_container_checked ( CborEncoder *  ,
const CborEncoder *   
)
static

Definition at line 30 of file qcborstreamwriter.cpp.

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( CborEncoder  ,
Q_PRIMITIVE_TYPE   
)

◆ qt_cbor_encoder_write_callback()

static CborError qt_cbor_encoder_write_callback ( void token,
const void data,
size_t  len,
CborEncoderAppendType   
)
static

Definition at line 247 of file qcborstreamwriter.cpp.

References QCborStreamWriterPrivate::device, and QIODevice::write().

Referenced by QCborStreamWriterPrivate::QCborStreamWriterPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: