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:

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 PySide6.QtCore.FromBase64Result

PySide6.QtCore.FromBase64Result(FromBase64Result)

Parameters

FromBase64ResultPySide6.QtCore.FromBase64Result

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

rhsPySide6.QtCore.FromBase64Result

Return type

bool

PySide6.QtCore.FromBase64Result.__mul__()
Return type

PySide6.QtCore.QByteArray

Returns the decoded byte array.

PySide6.QtCore.FromBase64Result.__eq__(rhs)
Parameters

rhsPySide6.QtCore.FromBase64Result

Return type

bool

PySide6.QtCore.FromBase64Result.swap(other)
Parameters

otherPySide6.QtCore.FromBase64Result