class FromBase64Result

The FromBase64Result class holds the result of a call to fromBase64Encoding . 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 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

fromBase64

PySide6.QtCore.QByteArray.FromBase64Result.decoded
PySide6.QtCore.QByteArray.FromBase64Result.decodingStatus
__ne__(rhs)
Parameters:

rhsFromBase64Result

Return type:

bool

Returns true if lhs and rhs are different, otherwise returns false.

__mul__()
Return type:

QByteArray

Returns the decoded byte array.

__eq__(rhs)
Parameters:

rhsFromBase64Result

Return type:

bool

Returns true if lhs and rhs are equal, otherwise returns false.

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.

swap(other)
Parameters:

otherFromBase64Result