FromBase64Result

The FromBase64Result class holds the result of a call to fromBase64Encoding . More

Inheritance diagram of PySide2.QtCore.QByteArray.FromBase64Result

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:

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

fromBase64

class PySide2.QtCore.QByteArray.FromBase64Result

PySide2.QtCore.QByteArray.FromBase64Result(FromBase64Result)

Parameters

FromBase64ResultPySide2.QtCore.QByteArray.FromBase64Result

PySide2.QtCore.QByteArray.FromBase64Result.decoded
PySide2.QtCore.QByteArray.FromBase64Result.decodingStatus
PySide2.QtCore.QByteArray.FromBase64Result.__ne__(rhs)
Parameters

rhsPySide2.QtCore.QByteArray.FromBase64Result

Return type

bool

PySide2.QtCore.QByteArray.FromBase64Result.__mul__()
Return type

PySide2.QtCore.QByteArray

Returns the decoded byte array.

PySide2.QtCore.QByteArray.FromBase64Result.__eq__(rhs)
Parameters

rhsPySide2.QtCore.QByteArray.FromBase64Result

Return type

bool

PySide2.QtCore.QByteArray.FromBase64Result.swap(other)
Parameters

otherPySide2.QtCore.QByteArray.FromBase64Result