FromBase64Result¶
The FromBase64Result
class holds the result of a call to fromBase64Encoding
. 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 for FromBase64Result
make its usage straightforward:
def process(): if auto result = QByteArray.fromBase64Encoding(encodedData): process(result)
Alternatively, it is possible to access the conversion status and the decoded data directly:
result = QByteArray.fromBase64Encoding(encodedData) if result.decodingStatus == QByteArray.Base64DecodingStatus.Ok: process(result.decoded)See also
- class PySide6.QtCore.QByteArray.FromBase64Result¶
PySide6.QtCore.QByteArray.FromBase64Result(FromBase64Result)
- Parameters
FromBase64Result –
PySide6.QtCore.QByteArray.FromBase64Result
- PySide6.QtCore.QByteArray.FromBase64Result.decoded¶
- PySide6.QtCore.QByteArray.FromBase64Result.decodingStatus¶
- PySide6.QtCore.QByteArray.FromBase64Result.__ne__(rhs)¶
- Parameters
- Return type
bool
- PySide6.QtCore.QByteArray.FromBase64Result.__mul__()¶
- Return type
Returns the decoded byte array.
- PySide6.QtCore.QByteArray.FromBase64Result.__eq__(rhs)¶
- Parameters
- Return type
bool
- PySide6.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.