QCborParserError Struct
QCborParserError는 QCborValue 에서 구문 분석 오류를 보고하는 데 사용됩니다. 더 보기...
| 헤더: | #include <QCborParserError> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
- 상속된 멤버를 포함한 모든 멤버 목록
- QCborParserError는 Qt의 CBOR 지원 기능의 일부입니다.
참고: 이 구조체의 모든 함수는 재진입 가능합니다.
공개 함수
| QString | errorString() const |
공개 변수
상세 설명
이 클래스는 QCborValue::fromCbor(const QByteArray &ba, QCborParserError *error)에서 파서 오류와 오류가 감지된 바이트 오프셋을 보고하는 데 사용됩니다.
QCborValue 및 QCborError도 참조하십시오 .
멤버 함수 문서
QString QCborParserError::errorString() const
오류 코드를 문자열로 변환하여 반환합니다. 이 문자열은 번역되지 않습니다.
QCborError::toString() 및 QCborValue::fromCbor()도 참조하십시오 .
멤버 변수 설명
QCborError QCborParserError::error
이 필드에는 어떤 디코딩 문제가 발견되었는지를 나타내는 오류 코드가 포함됩니다.
QCborValue::fromCbor()도 참조하십시오 .
qint64 QCborParserError::offset
이 필드에는 오류가 감지된 데이터의 시작 부분으로부터의 오프셋이 포함됩니다. 오류 자체가 다른 곳에 있더라도(예: UTF-8 디코딩 문제의 경우), 이 오프셋은 오류가 포함된 항목의 시작 부분을 가리켜야 합니다.
QCborValue::fromCbor()도 참조하십시오 .
© 2026 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.