package qt /* #include "gen_qcborcommon.h" #include */ import "C" import ( "runtime" "unsafe" ) type QCborSimpleType int const ( QCborSimpleType__False QCborSimpleType = 20 QCborSimpleType__True QCborSimpleType = 21 QCborSimpleType__Null QCborSimpleType = 22 QCborSimpleType__Undefined QCborSimpleType = 23 ) type QCborKnownTags int const ( QCborKnownTags__DateTimeString QCborKnownTags = 0 QCborKnownTags__UnixTime_t QCborKnownTags = 1 QCborKnownTags__PositiveBignum QCborKnownTags = 2 QCborKnownTags__NegativeBignum QCborKnownTags = 3 QCborKnownTags__Decimal QCborKnownTags = 4 QCborKnownTags__Bigfloat QCborKnownTags = 5 QCborKnownTags__COSE_Encrypt0 QCborKnownTags = 16 QCborKnownTags__COSE_Mac0 QCborKnownTags = 17 QCborKnownTags__COSE_Sign1 QCborKnownTags = 18 QCborKnownTags__ExpectedBase64url QCborKnownTags = 21 QCborKnownTags__ExpectedBase64 QCborKnownTags = 22 QCborKnownTags__ExpectedBase16 QCborKnownTags = 23 QCborKnownTags__EncodedCbor QCborKnownTags = 24 QCborKnownTags__Url QCborKnownTags = 32 QCborKnownTags__Base64url QCborKnownTags = 33 QCborKnownTags__Base64 QCborKnownTags = 34 QCborKnownTags__RegularExpression QCborKnownTags = 35 QCborKnownTags__MimeMessage QCborKnownTags = 36 QCborKnownTags__Uuid QCborKnownTags = 37 QCborKnownTags__COSE_Encrypt QCborKnownTags = 96 QCborKnownTags__COSE_Mac QCborKnownTags = 97 QCborKnownTags__COSE_Sign QCborKnownTags = 98 QCborKnownTags__Signature QCborKnownTags = 55799 ) type QCborError__Code int const ( QCborError__Code__UnknownError QCborError__Code = 1 QCborError__Code__AdvancePastEnd QCborError__Code = 3 QCborError__Code__InputOutputError QCborError__Code = 4 QCborError__Code__GarbageAtEnd QCborError__Code = 256 QCborError__Code__EndOfFile QCborError__Code = 257 QCborError__Code__UnexpectedBreak QCborError__Code = 258 QCborError__Code__UnknownType QCborError__Code = 259 QCborError__Code__IllegalType QCborError__Code = 260 QCborError__Code__IllegalNumber QCborError__Code = 261 QCborError__Code__IllegalSimpleType QCborError__Code = 262 QCborError__Code__InvalidUtf8String QCborError__Code = 516 QCborError__Code__DataTooLarge QCborError__Code = 1024 QCborError__Code__NestingTooDeep QCborError__Code = 1025 QCborError__Code__UnsupportedType QCborError__Code = 1026 QCborError__Code__NoError QCborError__Code = 0 ) type QCborError struct { h *C.QCborError } func (this *QCborError) cPointer() *C.QCborError { if this == nil { return nil } return this.h } func newQCborError(h *C.QCborError) *QCborError { if h == nil { return nil } return &QCborError{h: h} } func newQCborError_U(h unsafe.Pointer) *QCborError { return newQCborError((*C.QCborError)(h)) } func (this *QCborError) ToString() string { var _ms *C.struct_miqt_string = C.QCborError_ToString(this.h) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret } // Delete this object from C++ memory. func (this *QCborError) Delete() { C.QCborError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QCborError) GoGC() { runtime.SetFinalizer(this, func(this *QCborError) { this.Delete() runtime.KeepAlive(this.h) }) }