Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qv4serialize_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant
4
5#ifndef QV4SERIALIZE_P_H
6#define QV4SERIALIZE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/qbytearray.h>
20#include <private/qv4value_p.h>
21
22QT_BEGIN_NAMESPACE
23
24namespace QV4 {
25
26class Serialize {
27public:
28
29 static QByteArray serialize(const Value &, ExecutionEngine *);
30 static ReturnedValue deserialize(const QByteArray &, ExecutionEngine *);
31
32private:
33 static void serialize(QByteArray &, const Value &, ExecutionEngine *);
34 static ReturnedValue deserialize(const char *&, ExecutionEngine *);
35};
36
37}
38
39QT_END_NAMESPACE
40
41#endif // QV4SERIALIZE_P_H
Type
\value X11 \value Windows \value MacPrinter \value CoreGraphics \macos's Quartz2D (CoreGraphics) \val...
static ReturnedValue deserialize(const QByteArray &, ExecutionEngine *)
static QByteArray serialize(const Value &, ExecutionEngine *)
Definition qjsvalue.h:23
#define ALIGN(size, type)
static quint32 valueheader(Type type, quint32 size=0)
static quint32 popUint32(const char *&data)
static void reserve(QByteArray &data, int extra)
@ WorkerNumber
@ WorkerDate
@ WorkerArray
@ WorkerNull
@ WorkerSequence
@ WorkerRegexp
@ WorkerFalse
@ WorkerTrue
@ WorkerFunction
@ WorkerListModel
@ WorkerString
@ WorkerUrl
@ WorkerObject
@ WorkerUint32
@ WorkerInt32
@ WorkerUndefined
static void * popPtr(const char *&data)
static Type headertype(quint32 header)
static double popDouble(const char *&data)
static void push(QByteArray &data, quint32 value)
static quint32 headersize(quint32 header)
static void push(QByteArray &data, void *ptr)
static void serializeString(QByteArray &data, const QString &str, Type type)
static void push(QByteArray &data, double value)
void release() const
VariantRef(const VariantRef &r)
QObject * obj
VariantRef(QObject *a)
VariantRef & operator=(const VariantRef &o)
void addref() const