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