FromBase64Result Class
class QByteArray::FromBase64ResultQByteArray::FromBase64Result クラスはQByteArray::fromBase64Encoding を呼び出した結果を保持する。詳細...
パブリック関数
bool | operator bool() const |
const QByteArray & | operator*() const |
パブリック変数
QByteArray | decoded |
QByteArray::Base64DecodingStatus | decodingStatus |
関連する非メンバー
size_t | qHash(const QByteArray::FromBase64Result &key, size_t seed = 0) |
bool | operator!=(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs) |
bool | operator==(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs) |
詳細説明
このクラスのオブジェクトは、変換が成功したかどうかをチェックし、成功した場合、デコードされたQByteArray を取得するために使用することができます。QByteArray::FromBase64Result のために定義された変換演算子により、このクラスの使い方は簡単です:
void process(const QByteArray &); if (auto result = QByteArray::fromBase64Encoding(encodedData)) process(*result);
また、変換ステータスやデコードされたデータに直接アクセスすることも可能です:
auto result = QByteArray::fromBase64Encoding(encodedData); if (result.decodingStatus == QByteArray::Base64DecodingStatus::Ok) process(result.decoded);
メンバ関数ドキュメント
[explicit noexcept]
bool FromBase64Result::operator bool() const
デコードが成功したかどうかを返す。これはdecodingStatus
メンバがQByteArray::Base64DecodingStatus::Okに等しいかどうかをチェックすることと同じです。
[noexcept]
const QByteArray &FromBase64Result::operator*() const
デコードされたバイト配列を返す。
メンバ変数ドキュメント
QByteArray FromBase64Result::decoded
デコードされたバイト配列。
QByteArray::Base64DecodingStatus FromBase64Result::decodingStatus
QByteArray::Base64DecodingStatus型の値で表されます。
関連する非メンバー
[noexcept]
size_t qHash(const QByteArray::FromBase64Result &key, size_t seed = 0)
key のハッシュ値を返す。計算のシードにはseed を使用する。
[noexcept]
bool operator!=(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs)
lhs とrhs が異なる場合はtrue
を返し、そうでない場合はfalse
を返す。
[noexcept]
bool operator==(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs)
lhs とrhs が等しい場合はtrue
を返し、そうでない場合はfalse
を返す。
lhs rhs また、ステータスが QByteArray::Base64DecodingStatus::Ok の場合は、デコードされたデータが同じである場合に限ります。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. 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.