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()도 참조하세요 .
© 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.