Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qtuio_p.h
Go to the documentation of this file.
1
// Copyright (C) 2014 Robin Burchell <robin.burchell@viroteck.net>
2
// Copyright (C) 2016 The Qt Company Ltd.
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5
#
ifndef
QTUIO_P_H
6
#
define
QTUIO_P_H
7
8
QT_BEGIN_NAMESPACE
9
10
inline
bool
qt_readOscString(
const
QByteArray
&source,
QByteArray
&dest, quint32 &pos)
11
{
12
int
end = source.indexOf(
'\0'
, pos);
13
if
(end < 0) {
14
pos = source.size();
15
dest = QByteArray();
16
return
false
;
17
}
18
19
dest = source.mid(pos, end - pos);
20
21
// Skip additional NULL bytes at the end of the string to make sure the
22
// total number of bits a multiple of 32 bits ("OSC-string" in the
23
// specification).
24
end += 4 - ((end - pos) % 4);
25
26
pos = end;
27
return
true
;
28
}
29
30
QT_END_NAMESPACE
31
32
#
endif
QByteArray::FromBase64Result
\inmodule QtCore
Definition
qbytearray.h:824
QOscBundle
Definition
qoscbundle_p.h:17
QOscBundle::messages
QList< QOscMessage > messages() const
Definition
qoscbundle_p.h:25
QOscBundle::QOscBundle
QOscBundle(const QByteArray &data)
Definition
qoscbundle.cpp:24
QOscBundle::isValid
bool isValid() const
Definition
qoscbundle_p.h:23
QOscBundle::bundles
QList< QOscBundle > bundles() const
Definition
qoscbundle_p.h:24
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_DECLARE_TYPEINFO
Q_DECLARE_TYPEINFO(QOscBundle, Q_RELOCATABLE_TYPE)
Q_DECLARE_TYPEINFO
Q_DECLARE_TYPEINFO(QOscMessage, Q_RELOCATABLE_TYPE)
qtbase
src
plugins
generic
tuiotouch
qtuio_p.h
Generated on
for Qt by
1.18.0