FromBase64Result¶
The
FromBase64Result
class holds the result of a call tofromBase64Encoding
. More…
New in version 5.15.
Synopsis¶
Functions¶
Detailed Description¶
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 forFromBase64Result
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:
auto result = QByteArray::fromBase64Encoding(encodedData); if (result.decodingStatus == QByteArray::Base64DecodingStatus::Ok) process(result.decoded);See also
- class PySide2.QtCore.QByteArray.FromBase64Result¶
PySide2.QtCore.QByteArray.FromBase64Result(FromBase64Result)
- Parameters:
FromBase64Result –
PySide2.QtCore.QByteArray.FromBase64Result
- PySide2.QtCore.QByteArray.FromBase64Result.decoded¶
- PySide2.QtCore.QByteArray.FromBase64Result.decodingStatus¶
- PySide2.QtCore.QByteArray.FromBase64Result.__ne__(rhs)¶
- Parameters:
- Return type:
bool
- PySide2.QtCore.QByteArray.FromBase64Result.__mul__()¶
- Return type:
Returns the decoded byte array.
- PySide2.QtCore.QByteArray.FromBase64Result.__eq__(rhs)¶
- Parameters:
- Return type:
bool
- PySide2.QtCore.QByteArray.FromBase64Result.swap(other)¶
- Parameters:
© 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.