1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qbytearraylist.cpp -->
<title>QByteArrayList Class | Qt Core 5.11</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="text/javascript">
document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
// loading style sheet breaks anchors that were jumped to before
// so force jumping to anchor again
setTimeout(function() {
var anchor = location.hash;
// need to jump to different anchor first (e.g. none)
location.hash = "#";
setTimeout(function() {
location.hash = anchor;
}, 0);
}, 0);
</script>
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QByteArrayList</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</td>
</tr></table>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QByteArrayList Class</h1>
<!-- $$$QByteArrayList-brief -->
<p>The <a href="qbytearraylist.html">QByteArrayList</a> class provides a list of byte arrays. <a href="#details">More...</a></p>
<!-- @@@QByteArrayList -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QByteArrayList></span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.4</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qlist.html">QList</a></td></tr></table></div><ul>
<li><a href="qbytearraylist-members.html">List of all members, including inherited members</a></li>
</ul>
<p><b>Note:</b> All functions in this class are <a href="../qtdoc/threads-reentrancy.html">reentrant</a>.</p>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="qbytearraylist.html#join">join</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="qbytearraylist.html#join-1">join</a></b>(const QByteArray &<i>separator</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="qbytearraylist.html#join-2">join</a></b>(char <i>separator</i>) const</td></tr>
</table></div>
<ul>
<li class="fn">78 public functions inherited from <a href="qlist.html#public-functions">QList</a></li>
</ul>
<a name="related-non-members"></a>
<h2 id="related-non-members">Related Non-Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qbytearraylist.html#QByteArrayListIterator-typedef">QByteArrayListIterator</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qbytearraylist.html#QMutableByteArrayListIterator-typedef">QMutableByteArrayListIterator</a></b></td></tr>
</table></div>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">3 static public members inherited from <a href="qlist.html#static-public-members">QList</a></li>
</ul>
<a name="details"></a>
<!-- $$$QByteArrayList-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qbytearraylist.html">QByteArrayList</a> class provides a list of byte arrays.</p>
<p><a href="qbytearraylist.html">QByteArrayList</a> is actually just a <a href="qlist.html">QList</a><<a href="qbytearray.html">QByteArray</a>>. It is documented as a full class just for simplicity of documenting the member methods that exist only in <a href="qlist.html">QList</a><<a href="qbytearray.html">QByteArray</a>>.</p>
<p>All of <a href="qlist.html">QList</a>'s functionality also applies to <a href="qbytearraylist.html">QByteArrayList</a>. For example, you can use <a href="qlist.html#isEmpty">isEmpty</a>() to test whether the list is empty, and you can call functions like <a href="qlist.html#append">append</a>(), <a href="qlist.html#prepend">prepend</a>(), <a href="qlist.html#insert">insert</a>(), <a href="qlist.html#replace">replace</a>(), <a href="qlist.html#removeAll">removeAll</a>(), <a href="qlist.html#removeAt">removeAt</a>(), <a href="qlist.html#removeFirst">removeFirst</a>(), <a href="qlist.html#removeLast">removeLast</a>(), and <a href="qlist.html#removeOne">removeOne</a>() to modify a <a href="qbytearraylist.html">QByteArrayList</a>. In addition, <a href="qbytearraylist.html">QByteArrayList</a> provides several <a href="qbytearraylist.html#join">join</a>() methods for concatenating the list into a single <a href="qbytearray.html">QByteArray</a>.</p>
<p>The purpose of <a href="qbytearraylist.html">QByteArrayList</a> is quite different from that of <a href="qstringlist.html">QStringList</a>. Whereas <a href="qstringlist.html">QStringList</a> has many methods for manipulation of elements within the list, <a href="qbytearraylist.html">QByteArrayList</a> does not. Normally, <a href="qstringlist.html">QStringList</a> should be used whenever working with a list of printable strings. <a href="qbytearraylist.html">QByteArrayList</a> should be used to handle and efficiently join large blobs of binary data, as when sequentially receiving serialized data through a <a href="qiodevice.html">QIODevice</a>.</p>
</div>
<p><b>See also </b><a href="qbytearray.html">QByteArray</a> and <a href="qstringlist.html">QStringList</a>.</p>
<!-- @@@QByteArrayList -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$join[overload1]$$$join -->
<h3 class="fn" id="join"><a name="join"></a><span class="type"><a href="qbytearray.html">QByteArray</a></span> QByteArrayList::<span class="name">join</span>() const</h3>
<p>Joins all the byte arrays into a single byte array.</p>
<!-- @@@join -->
<!-- $$$join$$$joinconstQByteArray& -->
<h3 class="fn" id="join-1"><a name="join-1"></a><span class="type"><a href="qbytearray.html">QByteArray</a></span> QByteArrayList::<span class="name">join</span>(const <span class="type"><a href="qbytearray.html">QByteArray</a></span> &<i>separator</i>) const</h3>
<p>Joins all the byte arrays into a single byte array with each element separated by the given <i>separator</i>.</p>
<!-- @@@join -->
<!-- $$$join$$$joinchar -->
<h3 class="fn" id="join-2"><a name="join-2"></a><span class="type"><a href="qbytearray.html">QByteArray</a></span> QByteArrayList::<span class="name">join</span>(<span class="type">char</span> <i>separator</i>) const</h3>
<p>Joins all the byte arrays into a single byte array with each element separated by the given <i>separator</i>.</p>
<!-- @@@join -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$QByteArrayListIterator -->
<h3 class="fn" id="QByteArrayListIterator-typedef"><a name="QByteArrayListIterator-typedef"></a>typedef <span class="name">QByteArrayListIterator</span></h3>
<p>The QByteArrayListIterator type definition provides a Java-style const iterator for <a href="qbytearraylist.html">QByteArrayList</a>.</p>
<p><a href="qbytearraylist.html">QByteArrayList</a> provides both <a href="containers.html#java-style-iterators">Java-style iterators</a> and <a href="containers.html#stl-style-iterators">STL-style iterators</a>. The Java-style const iterator is simply a type definition for <a href="qlistiterator.html">QListIterator</a><<a href="qbytearray.html">QByteArray</a>>.</p>
<p><b>See also </b><a href="qbytearraylist.html#QMutableByteArrayListIterator-typedef">QMutableByteArrayListIterator</a> and <a href="qlist-const-iterator.html">QByteArrayList::const_iterator</a>.</p>
<!-- @@@QByteArrayListIterator -->
<!-- $$$QMutableByteArrayListIterator -->
<h3 class="fn" id="QMutableByteArrayListIterator-typedef"><a name="QMutableByteArrayListIterator-typedef"></a>typedef <span class="name">QMutableByteArrayListIterator</span></h3>
<p>The <a href="qbytearraylist.html#QByteArrayListIterator-typedef">QByteArrayListIterator</a> type definition provides a Java-style non-const iterator for <a href="qbytearraylist.html">QByteArrayList</a>.</p>
<p><a href="qbytearraylist.html">QByteArrayList</a> provides both <a href="containers.html#java-style-iterators">Java-style iterators</a> and <a href="containers.html#stl-style-iterators">STL-style iterators</a>. The Java-style non-const iterator is simply a type definition for <a href="qmutablelistiterator.html">QMutableListIterator</a><<a href="qbytearray.html">QByteArray</a>>.</p>
<p><b>See also </b><a href="qbytearraylist.html#QByteArrayListIterator-typedef">QByteArrayListIterator</a> and <a href="qlist-iterator.html">QByteArrayList::iterator</a>.</p>
<!-- @@@QMutableByteArrayListIterator -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2018 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>