Qtリファレンス QByteArray 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(公開 メンバ変数)
(公開 メンバ変数)
 
3行: 3行:
 
 Qt5.15.2
 
 Qt5.15.2
  
 #include <QByteArray>をインクルードする必要があります。
+
 #include <QByteArray>をインクルードする必要があります。文字列のようなバイトコードを格納するのに適したクラスです。文字列ではないバイトデータでも良いです。
  
 
 
 
 
16行: 16行:
 
:*4:IgnoreBase64DecodingErrors
 
:*4:IgnoreBase64DecodingErrors
 
:*5:AbortOnBase64DecodingErrors
 
:*5:AbortOnBase64DecodingErrors
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">typedef</span> <span style="color:blue;">const_iterator</span>;</span>
+
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">typedef</span> <span style="color:blue;">const_iterator</span>;</span>  
 
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">typedef</span> <span style="color:blue;">const_reverse_iterator</span>;</span>
 
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">typedef</span> <span style="color:blue;">const_reverse_iterator</span>;</span>
 
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">typedef</span> <span style="color:blue;">iterator</span>;</span>
 
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">typedef</span> <span style="color:blue;">iterator</span>;</span>
 
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">typedef</span> <span style="color:blue;">reverse_iterator</span>;</span>
 
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">typedef</span> <span style="color:blue;">reverse_iterator</span>;</span>
 +
 +
 typedef型のメンバ変数はそのメンバ変数の型名を使うということを定義しています。QByteArray型の中でIterator型の戻り値などに使われます。この結びつけはSTL-style iteratorで定義されていることになっています。例えば
 +
<syntaxhighlight2 lang="cpp">
 +
QByteArray obj;
 +
QByteArray::const_iterator const QByteArray__const_iterator_obj;
 +
QByteArray__const_iterator_obj = obj.Begin();
 +
</syntaxhighlight2>
 +
 のような感じです。
 +
 +
 
 +
 +
=== '''コンストラクタ QByteArray::QByteArray''' ===
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:blue;">QByteArray::QByteArray</span>();</span>
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:blue;">QByteArray::QByteArray</span>(<span style="color:deeppink;">int</span> size, <span style="color:deeppink;">char</span> ch);</span>
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:blue;">QByteArray::QByteArray</span>(<span style="color:deeppink;">const char*</span> data, <span style="color:deeppink;">int</span> size=-1);</span>
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:blue;">QByteArray::QByteArray</span>(<span style="color:deeppink;">const QByteArray&</span> other);</span>
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:blue;">QByteArray::QByteArray</span>(<span style="color:deeppink;">QByteArray&&</span> other);</span>
 +
 +
 
 +
 +
=== '''デストラクタ QByteArray::~QByteArray''' ===
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:blue;">QByteArray::~QByteArray</span>();</span>
 +
 +
 
 +
 +
=== '''公開 Public''' ===
 +
==== '''演算子 = ''' ====
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QByteArray&</span> <span style="color:blue;">QByteArray::operator=</span>(<span style="color:deeppink;">const QByteArray&</span> other);</span>
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QByteArray&</span> <span style="color:blue;">QByteArray::operator=</span>(<span style="color:deeppink;">QByteArray&&</span> other);</span>
 +
 +
 
 +
 +
==== '''公開 メンバ関数 append''' ====
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QByteArray&</span> <span style="color:blue;">QByteArray::append</span>(<span style="color:deeppink;">char</span> ch);</span>
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QByteArray&</span> <span style="color:blue;">QByteArray::append</span>(<span style="color:deeppink;">int</span> count, <span style="color:deeppink;">char</span> ch);</span>
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QByteArray&</span> <span style="color:blue;">QByteArray::append</span>(<span style="color:deeppink;">const char*</span> str);</span>
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QByteArray&</span> <span style="color:blue;">QByteArray::append</span>(<span style="color:deeppink;">const char*</span> str, <span style="color:deeppink;">int</span> len);</span>
 +
 +
 
 +
 +
==== '''公開 メンバ関数 at''' ====
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">char</span> <span style="color:blue;">QByteArray::at</span>(<span style="color:deeppink;">int</span> i) <span style="color:deeppink;">const</span>;</span>
 +
 +
 
 +
 +
==== '''公開 メンバ関数 back''' ====
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QByteArray&</span> <span style="color:blue;">QByteArray::back</span>() <span style="color:deeppink;">const</span>;</span>
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QByteRef</span> <span style="color:blue;">QByteArray::back</span>();</span>
 +
 +
 
 +
 +
==== '''公開 メンバ関数 data''' ====
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">char*</span> <span style="color:blue;">QByteArray::data</span>() ;</span>
 +
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">const char*</span> <span style="color:blue;">QByteArray::data</span>() const;</span>
 
 
 
 
  
 
[[Qt#Qtリファレンス|Qtリファレンス]]へ戻る
 
[[Qt#Qtリファレンス|Qtリファレンス]]へ戻る

2021年2月28日 (日) 00:00時点における最新版



個人用ツール
名前空間

変種
操作
案内
ツールボックス