Qt
6.x
The Qt SDK
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
\inmodule QtCore
Definition
qbytearray.h:57
QByteArray::mid
QByteArray mid(qsizetype index, qsizetype len=-1) const
Returns a byte array containing len bytes from this byte array, starting at position pos.
Definition
qbytearray.cpp:3084
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
end
GLuint GLuint end
Definition
qopengles2ext.h:354
source
GLsizei GLsizei GLchar * source
Definition
qopengles2ext.h:952
qt_readOscString
QT_BEGIN_NAMESPACE bool qt_readOscString(const QByteArray &source, QByteArray &dest, quint32 &pos)
Definition
qtuio_p.h:10
quint32
unsigned int quint32
Definition
qtypes.h:45
pos
pos
[7]
Definition
src_corelib_io_qsettings.cpp:57
qtbase
src
plugins
generic
tuiotouch
qtuio_p.h
Generated by
1.9.7