- class FromBase64Result¶
The
FromBase64Result
class holds the result of a call tofromBase64Encoding
. More…Synopsis¶
Methods¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
Warning
This section contains snippets that were automatically translated from C++ to Python and may contain errors.
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: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
- PySide6.QtCore.QByteArray.FromBase64Result.decoded¶
- PySide6.QtCore.QByteArray.FromBase64Result.decodingStatus¶
- __ne__(rhs)¶
- Parameters:
rhs –
FromBase64Result
- Return type:
bool
Returns
true
iflhs
andrhs
are different, otherwise returnsfalse
.- __mul__()¶
- Return type:
Returns the decoded byte array.
- __eq__(rhs)¶
- Parameters:
rhs –
FromBase64Result
- Return type:
bool
Returns
true
iflhs
andrhs
are equal, otherwise returnsfalse
.lhs
andrhs
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.- swap(other)¶
- Parameters:
other –
FromBase64Result