FromBase64Result Classclass QByteArray::FromBase64Result
This class was introduced in Qt 5.15.
|size_t||qHash(const QByteArray::FromBase64Result &key, size_t seed = 0)|
|bool||operator!=(const FromBase64Result &lhs, const FromBase64Result &rhs)|
|bool||operator==(const FromBase64Result &lhs, const FromBase64Result &rhs)|
Objects of this class can be used to check whether the conversion was successful, and if so, retrieve the decoded QByteArray. The conversion operators defined for QByteArray::FromBase64Result make its usage straightforward:
void process(const QByteArray &); if (auto result = QByteArray::fromBase64Encoding(encodedData)) process(*result);
Alternatively, it is possible to access the conversion status and the decoded data directly:
See also QByteArray::fromBase64.
Member Function Documentation
Returns whether the decoding was successful. This is equivalent to checking whether the
decodingStatus member is equal to QByteArray::Base64DecodingStatus::Ok.
const QByteArray &FromBase64Result::operator*() const
Returns the decoded byte array.
Member Variable Documentation
Contains the decoded byte array.
Contains whether the decoding was successful, expressed as a value of type QByteArray::Base64DecodingStatus.
size_t qHash(const QByteArray::FromBase64Result &key, size_t seed = 0)
Returns the hash value for key, using seed to seed the calculation.
bool operator!=(const FromBase64Result &lhs, const FromBase64Result &rhs)
true if lhs and rhs are different, otherwise returns
bool operator==(const FromBase64Result &lhs, const FromBase64Result &rhs)
true if lhs and rhs are equal, otherwise returns
lhs and rhs are equal if and only if they contain the same decoding status and, if the status is QByteArray::Base64DecodingStatus::Ok, if and only if they contain the same decoded data.
© 2022 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.