FromBase64Result Class
class QByteArray::FromBase64ResultQByteArray::FromBase64Result 클래스는 QByteArray::fromBase64Encoding 으로의 호출 결과를 보유합니다. 더 보기...
공용 함수
bool | operator bool() const |
const QByteArray & | operator*() const |
공용 변수
QByteArray | decoded |
QByteArray::Base64DecodingStatus | decodingStatus |
관련 비회원
size_t | qHash(const QByteArray::FromBase64Result &key, size_t seed = 0) |
bool | operator!=(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs) |
bool | operator==(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs) |
상세 설명
이 클래스의 객체는 변환이 성공했는지 확인하고, 성공했다면 디코딩된 QByteArray 을 검색하는 데 사용할 수 있습니다. QByteArray::FromBase64Result 에 정의된 변환 연산자를 사용하면 간단하게 사용할 수 있습니다:
void process(const QByteArray &); if (auto result = QByteArray::fromBase64Encoding(encodedData)) process(*result);
또는 변환 상태와 디코딩된 데이터에 직접 액세스할 수도 있습니다:
auto result = QByteArray::fromBase64Encoding(encodedData); if (result.decodingStatus == QByteArray::Base64DecodingStatus::Ok) process(result.decoded);
QByteArray::fromBase64 를참조하세요 .
멤버 함수 문서
[explicit noexcept]
bool FromBase64Result::operator bool() const
디코딩 성공 여부를 반환합니다. 이는 decodingStatus
멤버가 QByteArray::Base64DecodingStatus::Ok와 같은지 확인하는 것과 동일합니다.
[noexcept]
const QByteArray &FromBase64Result::operator*() const
디코딩된 바이트 배열을 반환합니다.
멤버 변수 문서
QByteArray FromBase64Result::decoded
디코딩된 바이트 배열을 포함합니다.
QByteArray::Base64DecodingStatus FromBase64Result::decodingStatus
디코딩 성공 여부를 포함하며, QByteArray::Base64DecodingStatus 타입의 값으로 표현됩니다.
관련 비회원
[noexcept]
size_t qHash(const QByteArray::FromBase64Result &key, size_t seed = 0)
seed 을 사용하여 key 에 대한 해시값을 반환합니다.
[noexcept]
bool operator!=(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs)
lhs 과 rhs 이 다르면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
[noexcept]
bool operator==(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs)
lhs 과 rhs 이 같으면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
lhs 와 rhs 는 동일한 디코딩 상태를 포함하는 경우에만 같고, 상태가 QByteArray::Base64DecodingStatus::Ok인 경우, 동일한 디코딩된 데이터를 포함하는 경우에만 같습니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.