6#include <private/qv4dateobject_p.h>
7#include <private/qv4objectproto_p.h>
8#include <private/qv4qobjectwrapper_p.h>
9#include <private/qv4regexp_p.h>
10#include <private/qv4regexpobject_p.h>
11#include <private/qv4sequenceobject_p.h>
12#include <private/qv4value_p.h>
73 data.append((
const char *)&
value,
sizeof(
double));
78 data.append((
const char *)&
ptr,
sizeof(
void *));
95 double rv = *((
const double *)
data);
96 data +=
sizeof(double);
102 void *rv = *((
void *
const *)
data);
103 data +=
sizeof(
void *);
107#define ALIGN(size) (((size) + 3) & ~3)
121 data.resize(
data.size() + utf16size);
135 Q_ASSERT(!
"Serialize: got empty value");
136 }
else if (
v.isUndefined()) {
138 }
else if (
v.isNull()) {
140 }
else if (
v.isBoolean()) {
142 }
else if (
v.isString()) {
159 }
else if (
v.isInteger()) {
167 }
else if (
v.isNumber()) {
190 data.resize(
data.size() + utf16size);
197 if (
QObject *lm = qobjectWrapper->object()) {
198 if (
QObject *agent = qvariant_cast<QObject *>(lm->property(
"agent"))) {
224 for (
uint ii = 0; ii < seqLength; ++ii)
230 v, QMetaType::fromType<QUrl>(),
false);
253 if (scope.hasException())
254 scope.engine->catchException();
337 return a.asReturnedValue();
349 n =
name->asReturnedValue();
352 return o.asReturnedValue();
379 rv->
as<
Object>()->defineReadonlyProperty(
s,
v);
391 int sequenceType =
value->integerValue();
393 array->arrayReserve(seqLength);
394 for (
quint32 ii = 0; ii < seqLength; ++ii) {
398 array->setArrayLengthUnchecked(seqLength);
QJSValue newObject()
Creates a JavaScript object of class Object.
T fromVariant(const QVariant &value)
Returns the given value converted to the template type {T}.
bool setProperty(const char *name, const QVariant &value)
Sets the value of the object's name property to value.
\macro QT_RESTRICTED_CAST_FROM_ASCII
const QChar * constData() const
Returns a pointer to the data stored in the QString.
qsizetype size() const
Returns the number of characters in this string.
QString toString(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
Returns a string representation of the URL.
static ReturnedValue deserialize(const QByteArray &, ExecutionEngine *)
static QByteArray serialize(const Value &, ExecutionEngine *)
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Combined button and popup list for selecting options.
\qmltype Particle \inqmlmodule QtQuick.Particles
static const QCssKnownValue properties[NumProperties - 1]
static QString header(const QString &name)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static ControlElement< T > * ptr(QWidget *widget)
GLsizei const GLfloat * v
[13]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLenum GLsizei length
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint GLintptr offset
#define QStringLiteral(str)
static quint32 valueheader(Type type, quint32 size=0)
static quint32 popUint32(const char *&data)
static void reserve(QByteArray &data, int extra)
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 serializeString(QByteArray &data, const QString &str, Type type)
static constexpr ReturnedValue undefined()
static constexpr ReturnedValue null()
QV4::ReturnedValue fromVariant(const QVariant &)
static QVariant toVariant(const QV4::Value &value, QMetaType typeHint, bool createJSValueForObjectsAndSymbols=true)
static Heap::ArrayObject * getOwnPropertyNames(ExecutionEngine *v4, const Value &o)
static ReturnedValue wrap(ExecutionEngine *engine, QObject *object)
static QVariant toVariant(const Sequence *object)
static QMetaType metaTypeForSequence(const Sequence *object)
static ReturnedValue fromVariant(QV4::ExecutionEngine *engine, const QVariant &vd)
constexpr ReturnedValue asReturnedValue() const
static constexpr Value fromInt32(int i)
unsigned int toUInt32() const
VariantRef(const VariantRef &r)
VariantRef & operator=(const VariantRef &o)