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
qpacket_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
4
#
ifndef
QPACKET_H
5
#
define
QPACKET_H
6
7
#
include
<
QtCore
/
qdatastream
.
h
>
8
#
include
<
QtCore
/
qbuffer
.
h
>
9
10
//
11
// W A R N I N G
12
// -------------
13
//
14
// This file is not part of the Qt API. It exists purely as an
15
// implementation detail. This header file may change from version to
16
// version without notice, or even be removed.
17
//
18
// We mean it.
19
//
20
21
QT_BEGIN_NAMESPACE
22
23
class
QPacket :
public
QDataStream
24
{
25
public
:
26
QPacket(
int
version);
27
explicit
QPacket(
int
version,
const
QByteArray &ba);
28
const
QByteArray &data()
const
;
29
QByteArray squeezedData()
const
;
30
void
clear();
31
32
private
:
33
void
init(QIODevice::OpenMode mode);
34
QBuffer buf;
35
};
36
37
QT_END_NAMESPACE
38
39
#
endif
// QPACKET_H
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtdeclarative
src
plugins
qmltooling
packetprotocol
qpacket_p.h
Generated on
for Qt by
1.14.0