Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcborstreamwriter.cpp File Reference

(1261fa7654a827793a1f73b25e783ade32d47cfc)

#include "qcborstreamwriter.h"
#include <private/qcborcommon_p.h>
#include <private/qnumeric_p.h>
#include <private/qstringconverter_p.h>
#include <qbuffer.h>
#include <qdebug.h>
#include <qstack.h>
#include <qvarlengtharray.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 21 of file qcborstreamwriter.cpp.

◆ CBOR_ENCODER_WRITE_FUNCTION

#define CBOR_ENCODER_WRITE_FUNCTION   qt_cbor_encoder_write_callback

Definition at line 20 of file qcborstreamwriter.cpp.

◆ CBOR_ENCODER_WRITER_CONTROL

#define CBOR_ENCODER_WRITER_CONTROL   1

Definition at line 19 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 37 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 32 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 249 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: