package qt /* #include "gen_qbytearray.h" #include */ import "C" import ( "runtime" "unsafe" ) type DeprecatedRefClassBehavior__EmittingClass int const ( DeprecatedRefClassBehavior__EmittingClass__QByteRef DeprecatedRefClassBehavior__EmittingClass = 0 DeprecatedRefClassBehavior__EmittingClass__QCharRef DeprecatedRefClassBehavior__EmittingClass = 1 ) type DeprecatedRefClassBehavior__WarningType int const ( DeprecatedRefClassBehavior__WarningType__OutOfRange DeprecatedRefClassBehavior__WarningType = 0 DeprecatedRefClassBehavior__WarningType__DelayedDetach DeprecatedRefClassBehavior__WarningType = 1 ) type QByteArray__Base64Option int const ( QByteArray__Base64Option__Base64Encoding QByteArray__Base64Option = 0 QByteArray__Base64Option__Base64UrlEncoding QByteArray__Base64Option = 1 QByteArray__Base64Option__KeepTrailingEquals QByteArray__Base64Option = 0 QByteArray__Base64Option__OmitTrailingEquals QByteArray__Base64Option = 2 QByteArray__Base64Option__IgnoreBase64DecodingErrors QByteArray__Base64Option = 0 QByteArray__Base64Option__AbortOnBase64DecodingErrors QByteArray__Base64Option = 4 ) type QByteArray__Base64DecodingStatus int const ( QByteArray__Base64DecodingStatus__Ok QByteArray__Base64DecodingStatus = 0 QByteArray__Base64DecodingStatus__IllegalInputLength QByteArray__Base64DecodingStatus = 1 QByteArray__Base64DecodingStatus__IllegalCharacter QByteArray__Base64DecodingStatus = 2 QByteArray__Base64DecodingStatus__IllegalPadding QByteArray__Base64DecodingStatus = 3 ) type QByteArrayDataPtr struct { h *C.QByteArrayDataPtr } func (this *QByteArrayDataPtr) cPointer() *C.QByteArrayDataPtr { if this == nil { return nil } return this.h } func newQByteArrayDataPtr(h *C.QByteArrayDataPtr) *QByteArrayDataPtr { if h == nil { return nil } return &QByteArrayDataPtr{h: h} } func newQByteArrayDataPtr_U(h unsafe.Pointer) *QByteArrayDataPtr { return newQByteArrayDataPtr((*C.QByteArrayDataPtr)(h)) } // NewQByteArrayDataPtr constructs a new QByteArrayDataPtr object. func NewQByteArrayDataPtr() *QByteArrayDataPtr { ret := C.QByteArrayDataPtr_new() return newQByteArrayDataPtr(ret) } // NewQByteArrayDataPtr2 constructs a new QByteArrayDataPtr object. func NewQByteArrayDataPtr2(param1 *QByteArrayDataPtr) *QByteArrayDataPtr { ret := C.QByteArrayDataPtr_new2(param1.cPointer()) return newQByteArrayDataPtr(ret) } // Delete this object from C++ memory. func (this *QByteArrayDataPtr) Delete() { C.QByteArrayDataPtr_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 *QByteArrayDataPtr) GoGC() { runtime.SetFinalizer(this, func(this *QByteArrayDataPtr) { this.Delete() runtime.KeepAlive(this.h) }) } type QByteArray struct { h *C.QByteArray } func (this *QByteArray) cPointer() *C.QByteArray { if this == nil { return nil } return this.h } func newQByteArray(h *C.QByteArray) *QByteArray { if h == nil { return nil } return &QByteArray{h: h} } func newQByteArray_U(h unsafe.Pointer) *QByteArray { return newQByteArray((*C.QByteArray)(h)) } // NewQByteArray constructs a new QByteArray object. func NewQByteArray() *QByteArray { ret := C.QByteArray_new() return newQByteArray(ret) } // NewQByteArray2 constructs a new QByteArray object. func NewQByteArray2(param1 string) *QByteArray { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) ret := C.QByteArray_new2(param1_Cstring) return newQByteArray(ret) } // NewQByteArray3 constructs a new QByteArray object. func NewQByteArray3(size int, c byte) *QByteArray { ret := C.QByteArray_new3((C.int)(size), (C.char)(c)) return newQByteArray(ret) } // NewQByteArray4 constructs a new QByteArray object. func NewQByteArray4(size int, param2 Initialization) *QByteArray { ret := C.QByteArray_new4((C.int)(size), (C.uintptr_t)(param2)) return newQByteArray(ret) } // NewQByteArray5 constructs a new QByteArray object. func NewQByteArray5(param1 *QByteArray) *QByteArray { ret := C.QByteArray_new5(param1.cPointer()) return newQByteArray(ret) } // NewQByteArray6 constructs a new QByteArray object. func NewQByteArray6(dd QByteArrayDataPtr) *QByteArray { ret := C.QByteArray_new6(dd.cPointer()) return newQByteArray(ret) } // NewQByteArray7 constructs a new QByteArray object. func NewQByteArray7(param1 string, size int) *QByteArray { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) ret := C.QByteArray_new7(param1_Cstring, (C.int)(size)) return newQByteArray(ret) } func (this *QByteArray) OperatorAssign(param1 *QByteArray) { C.QByteArray_OperatorAssign(this.h, param1.cPointer()) } func (this *QByteArray) OperatorAssignWithStr(str string) { str_Cstring := C.CString(str) defer C.free(unsafe.Pointer(str_Cstring)) C.QByteArray_OperatorAssignWithStr(this.h, str_Cstring) } func (this *QByteArray) Swap(other *QByteArray) { C.QByteArray_Swap(this.h, other.cPointer()) } func (this *QByteArray) Size() int { _ret := C.QByteArray_Size(this.h) return (int)(_ret) } func (this *QByteArray) IsEmpty() bool { _ret := C.QByteArray_IsEmpty(this.h) return (bool)(_ret) } func (this *QByteArray) Resize(size int) { C.QByteArray_Resize(this.h, (C.int)(size)) } func (this *QByteArray) Fill(c byte) *QByteArray { _ret := C.QByteArray_Fill(this.h, (C.char)(c)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Capacity() int { _ret := C.QByteArray_Capacity(this.h) return (int)(_ret) } func (this *QByteArray) Reserve(size int) { C.QByteArray_Reserve(this.h, (C.int)(size)) } func (this *QByteArray) Squeeze() { C.QByteArray_Squeeze(this.h) } func (this *QByteArray) Data() unsafe.Pointer { _ret := C.QByteArray_Data(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) Data2() unsafe.Pointer { _ret := C.QByteArray_Data2(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) ConstData() unsafe.Pointer { _ret := C.QByteArray_ConstData(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) Detach() { C.QByteArray_Detach(this.h) } func (this *QByteArray) IsDetached() bool { _ret := C.QByteArray_IsDetached(this.h) return (bool)(_ret) } func (this *QByteArray) IsSharedWith(other *QByteArray) bool { _ret := C.QByteArray_IsSharedWith(this.h, other.cPointer()) return (bool)(_ret) } func (this *QByteArray) Clear() { C.QByteArray_Clear(this.h) } func (this *QByteArray) At(i int) byte { _ret := C.QByteArray_At(this.h, (C.int)(i)) return (byte)(_ret) } func (this *QByteArray) OperatorSubscript(i int) byte { _ret := C.QByteArray_OperatorSubscript(this.h, (C.int)(i)) return (byte)(_ret) } func (this *QByteArray) OperatorSubscriptWithUint(i uint) byte { _ret := C.QByteArray_OperatorSubscriptWithUint(this.h, (C.uint)(i)) return (byte)(_ret) } func (this *QByteArray) OperatorSubscriptWithInt(i int) *QByteRef { _ret := C.QByteArray_OperatorSubscriptWithInt(this.h, (C.int)(i)) _goptr := newQByteRef(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) OperatorSubscript2(i uint) *QByteRef { _ret := C.QByteArray_OperatorSubscript2(this.h, (C.uint)(i)) _goptr := newQByteRef(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) Front() byte { _ret := C.QByteArray_Front(this.h) return (byte)(_ret) } func (this *QByteArray) Front2() *QByteRef { _ret := C.QByteArray_Front2(this.h) _goptr := newQByteRef(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) Back() byte { _ret := C.QByteArray_Back(this.h) return (byte)(_ret) } func (this *QByteArray) Back2() *QByteRef { _ret := C.QByteArray_Back2(this.h) _goptr := newQByteRef(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) IndexOf(c byte) int { _ret := C.QByteArray_IndexOf(this.h, (C.char)(c)) return (int)(_ret) } func (this *QByteArray) IndexOfWithChar(c string) int { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) _ret := C.QByteArray_IndexOfWithChar(this.h, c_Cstring) return (int)(_ret) } func (this *QByteArray) IndexOfWithQByteArray(a *QByteArray) int { _ret := C.QByteArray_IndexOfWithQByteArray(this.h, a.cPointer()) return (int)(_ret) } func (this *QByteArray) LastIndexOf(c byte) int { _ret := C.QByteArray_LastIndexOf(this.h, (C.char)(c)) return (int)(_ret) } func (this *QByteArray) LastIndexOfWithChar(c string) int { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) _ret := C.QByteArray_LastIndexOfWithChar(this.h, c_Cstring) return (int)(_ret) } func (this *QByteArray) LastIndexOfWithQByteArray(a *QByteArray) int { _ret := C.QByteArray_LastIndexOfWithQByteArray(this.h, a.cPointer()) return (int)(_ret) } func (this *QByteArray) Contains(c byte) bool { _ret := C.QByteArray_Contains(this.h, (C.char)(c)) return (bool)(_ret) } func (this *QByteArray) ContainsWithChar(a string) bool { a_Cstring := C.CString(a) defer C.free(unsafe.Pointer(a_Cstring)) _ret := C.QByteArray_ContainsWithChar(this.h, a_Cstring) return (bool)(_ret) } func (this *QByteArray) ContainsWithQByteArray(a *QByteArray) bool { _ret := C.QByteArray_ContainsWithQByteArray(this.h, a.cPointer()) return (bool)(_ret) } func (this *QByteArray) Count(c byte) int { _ret := C.QByteArray_Count(this.h, (C.char)(c)) return (int)(_ret) } func (this *QByteArray) CountWithChar(a string) int { a_Cstring := C.CString(a) defer C.free(unsafe.Pointer(a_Cstring)) _ret := C.QByteArray_CountWithChar(this.h, a_Cstring) return (int)(_ret) } func (this *QByteArray) CountWithQByteArray(a *QByteArray) int { _ret := C.QByteArray_CountWithQByteArray(this.h, a.cPointer()) return (int)(_ret) } func (this *QByteArray) Compare(c string) int { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) _ret := C.QByteArray_Compare(this.h, c_Cstring) return (int)(_ret) } func (this *QByteArray) CompareWithQByteArray(a *QByteArray) int { _ret := C.QByteArray_CompareWithQByteArray(this.h, a.cPointer()) return (int)(_ret) } func (this *QByteArray) Left(lenVal int) *QByteArray { _ret := C.QByteArray_Left(this.h, (C.int)(lenVal)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) Right(lenVal int) *QByteArray { _ret := C.QByteArray_Right(this.h, (C.int)(lenVal)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) Mid(index int) *QByteArray { _ret := C.QByteArray_Mid(this.h, (C.int)(index)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) Chopped(lenVal int) *QByteArray { _ret := C.QByteArray_Chopped(this.h, (C.int)(lenVal)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) StartsWith(a *QByteArray) bool { _ret := C.QByteArray_StartsWith(this.h, a.cPointer()) return (bool)(_ret) } func (this *QByteArray) StartsWithWithChar(c byte) bool { _ret := C.QByteArray_StartsWithWithChar(this.h, (C.char)(c)) return (bool)(_ret) } func (this *QByteArray) StartsWith2(c string) bool { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) _ret := C.QByteArray_StartsWith2(this.h, c_Cstring) return (bool)(_ret) } func (this *QByteArray) EndsWith(a *QByteArray) bool { _ret := C.QByteArray_EndsWith(this.h, a.cPointer()) return (bool)(_ret) } func (this *QByteArray) EndsWithWithChar(c byte) bool { _ret := C.QByteArray_EndsWithWithChar(this.h, (C.char)(c)) return (bool)(_ret) } func (this *QByteArray) EndsWith2(c string) bool { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) _ret := C.QByteArray_EndsWith2(this.h, c_Cstring) return (bool)(_ret) } func (this *QByteArray) IsUpper() bool { _ret := C.QByteArray_IsUpper(this.h) return (bool)(_ret) } func (this *QByteArray) IsLower() bool { _ret := C.QByteArray_IsLower(this.h) return (bool)(_ret) } func (this *QByteArray) Truncate(pos int) { C.QByteArray_Truncate(this.h, (C.int)(pos)) } func (this *QByteArray) Chop(n int) { C.QByteArray_Chop(this.h, (C.int)(n)) } func (this *QByteArray) ToLower() *QByteArray { _ret := C.QByteArray_ToLower(this.h) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) ToUpper() *QByteArray { _ret := C.QByteArray_ToUpper(this.h) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) Trimmed() *QByteArray { _ret := C.QByteArray_Trimmed(this.h) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) Simplified() *QByteArray { _ret := C.QByteArray_Simplified(this.h) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) LeftJustified(width int) *QByteArray { _ret := C.QByteArray_LeftJustified(this.h, (C.int)(width)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) RightJustified(width int) *QByteArray { _ret := C.QByteArray_RightJustified(this.h, (C.int)(width)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) Prepend(c byte) *QByteArray { _ret := C.QByteArray_Prepend(this.h, (C.char)(c)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Prepend2(count int, c byte) *QByteArray { _ret := C.QByteArray_Prepend2(this.h, (C.int)(count), (C.char)(c)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) PrependWithChar(s string) *QByteArray { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) _ret := C.QByteArray_PrependWithChar(this.h, s_Cstring) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Prepend3(s string, lenVal int) *QByteArray { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) _ret := C.QByteArray_Prepend3(this.h, s_Cstring, (C.int)(lenVal)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) PrependWithQByteArray(a *QByteArray) *QByteArray { _ret := C.QByteArray_PrependWithQByteArray(this.h, a.cPointer()) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Append(c byte) *QByteArray { _ret := C.QByteArray_Append(this.h, (C.char)(c)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Append2(count int, c byte) *QByteArray { _ret := C.QByteArray_Append2(this.h, (C.int)(count), (C.char)(c)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) AppendWithChar(s string) *QByteArray { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) _ret := C.QByteArray_AppendWithChar(this.h, s_Cstring) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Append3(s string, lenVal int) *QByteArray { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) _ret := C.QByteArray_Append3(this.h, s_Cstring, (C.int)(lenVal)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) AppendWithQByteArray(a *QByteArray) *QByteArray { _ret := C.QByteArray_AppendWithQByteArray(this.h, a.cPointer()) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Insert(i int, c byte) *QByteArray { _ret := C.QByteArray_Insert(this.h, (C.int)(i), (C.char)(c)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Insert2(i int, count int, c byte) *QByteArray { _ret := C.QByteArray_Insert2(this.h, (C.int)(i), (C.int)(count), (C.char)(c)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Insert3(i int, s string) *QByteArray { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) _ret := C.QByteArray_Insert3(this.h, (C.int)(i), s_Cstring) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Insert4(i int, s string, lenVal int) *QByteArray { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) _ret := C.QByteArray_Insert4(this.h, (C.int)(i), s_Cstring, (C.int)(lenVal)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Insert5(i int, a *QByteArray) *QByteArray { _ret := C.QByteArray_Insert5(this.h, (C.int)(i), a.cPointer()) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Remove(index int, lenVal int) *QByteArray { _ret := C.QByteArray_Remove(this.h, (C.int)(index), (C.int)(lenVal)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace(index int, lenVal int, s string) *QByteArray { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) _ret := C.QByteArray_Replace(this.h, (C.int)(index), (C.int)(lenVal), s_Cstring) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace2(index int, lenVal int, s string, alen int) *QByteArray { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) _ret := C.QByteArray_Replace2(this.h, (C.int)(index), (C.int)(lenVal), s_Cstring, (C.int)(alen)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace3(index int, lenVal int, s *QByteArray) *QByteArray { _ret := C.QByteArray_Replace3(this.h, (C.int)(index), (C.int)(lenVal), s.cPointer()) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace4(before byte, after string) *QByteArray { after_Cstring := C.CString(after) defer C.free(unsafe.Pointer(after_Cstring)) _ret := C.QByteArray_Replace4(this.h, (C.char)(before), after_Cstring) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace5(before byte, after *QByteArray) *QByteArray { _ret := C.QByteArray_Replace5(this.h, (C.char)(before), after.cPointer()) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace6(before string, after string) *QByteArray { before_Cstring := C.CString(before) defer C.free(unsafe.Pointer(before_Cstring)) after_Cstring := C.CString(after) defer C.free(unsafe.Pointer(after_Cstring)) _ret := C.QByteArray_Replace6(this.h, before_Cstring, after_Cstring) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace7(before string, bsize int, after string, asize int) *QByteArray { before_Cstring := C.CString(before) defer C.free(unsafe.Pointer(before_Cstring)) after_Cstring := C.CString(after) defer C.free(unsafe.Pointer(after_Cstring)) _ret := C.QByteArray_Replace7(this.h, before_Cstring, (C.int)(bsize), after_Cstring, (C.int)(asize)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace8(before *QByteArray, after *QByteArray) *QByteArray { _ret := C.QByteArray_Replace8(this.h, before.cPointer(), after.cPointer()) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace9(before *QByteArray, after string) *QByteArray { after_Cstring := C.CString(after) defer C.free(unsafe.Pointer(after_Cstring)) _ret := C.QByteArray_Replace9(this.h, before.cPointer(), after_Cstring) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace10(before string, after *QByteArray) *QByteArray { before_Cstring := C.CString(before) defer C.free(unsafe.Pointer(before_Cstring)) _ret := C.QByteArray_Replace10(this.h, before_Cstring, after.cPointer()) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace11(before byte, after byte) *QByteArray { _ret := C.QByteArray_Replace11(this.h, (C.char)(before), (C.char)(after)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) OperatorPlusAssign(c byte) *QByteArray { _ret := C.QByteArray_OperatorPlusAssign(this.h, (C.char)(c)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) OperatorPlusAssignWithChar(s string) *QByteArray { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) _ret := C.QByteArray_OperatorPlusAssignWithChar(this.h, s_Cstring) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) OperatorPlusAssignWithQByteArray(a *QByteArray) *QByteArray { _ret := C.QByteArray_OperatorPlusAssignWithQByteArray(this.h, a.cPointer()) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Split(sep byte) []QByteArray { var _ma *C.struct_miqt_array = C.QByteArray_Split(this.h, (C.char)(sep)) _ret := make([]QByteArray, int(_ma.len)) _outCast := (*[0xffff]*C.QByteArray)(unsafe.Pointer(_ma.data)) // mrs jackson for i := 0; i < int(_ma.len); i++ { _ret[i] = *newQByteArray(_outCast[i]) } C.free(unsafe.Pointer(_ma)) return _ret } func (this *QByteArray) Repeated(times int) *QByteArray { _ret := C.QByteArray_Repeated(this.h, (C.int)(times)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) AppendWithQString(s string) *QByteArray { s_ms := miqt_strdupg(s) defer C.free(s_ms) _ret := C.QByteArray_AppendWithQString(this.h, (*C.struct_miqt_string)(s_ms)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Insert6(i int, s string) *QByteArray { s_ms := miqt_strdupg(s) defer C.free(s_ms) _ret := C.QByteArray_Insert6(this.h, (C.int)(i), (*C.struct_miqt_string)(s_ms)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace12(before string, after string) *QByteArray { before_ms := miqt_strdupg(before) defer C.free(before_ms) after_Cstring := C.CString(after) defer C.free(unsafe.Pointer(after_Cstring)) _ret := C.QByteArray_Replace12(this.h, (*C.struct_miqt_string)(before_ms), after_Cstring) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace13(c byte, after string) *QByteArray { after_ms := miqt_strdupg(after) defer C.free(after_ms) _ret := C.QByteArray_Replace13(this.h, (C.char)(c), (*C.struct_miqt_string)(after_ms)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) Replace14(before string, after *QByteArray) *QByteArray { before_ms := miqt_strdupg(before) defer C.free(before_ms) _ret := C.QByteArray_Replace14(this.h, (*C.struct_miqt_string)(before_ms), after.cPointer()) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) OperatorPlusAssignWithQString(s string) *QByteArray { s_ms := miqt_strdupg(s) defer C.free(s_ms) _ret := C.QByteArray_OperatorPlusAssignWithQString(this.h, (*C.struct_miqt_string)(s_ms)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) IndexOfWithQString(s string) int { s_ms := miqt_strdupg(s) defer C.free(s_ms) _ret := C.QByteArray_IndexOfWithQString(this.h, (*C.struct_miqt_string)(s_ms)) return (int)(_ret) } func (this *QByteArray) LastIndexOfWithQString(s string) int { s_ms := miqt_strdupg(s) defer C.free(s_ms) _ret := C.QByteArray_LastIndexOfWithQString(this.h, (*C.struct_miqt_string)(s_ms)) return (int)(_ret) } func (this *QByteArray) OperatorEqual(s2 string) bool { s2_ms := miqt_strdupg(s2) defer C.free(s2_ms) _ret := C.QByteArray_OperatorEqual(this.h, (*C.struct_miqt_string)(s2_ms)) return (bool)(_ret) } func (this *QByteArray) OperatorNotEqual(s2 string) bool { s2_ms := miqt_strdupg(s2) defer C.free(s2_ms) _ret := C.QByteArray_OperatorNotEqual(this.h, (*C.struct_miqt_string)(s2_ms)) return (bool)(_ret) } func (this *QByteArray) OperatorLesser(s2 string) bool { s2_ms := miqt_strdupg(s2) defer C.free(s2_ms) _ret := C.QByteArray_OperatorLesser(this.h, (*C.struct_miqt_string)(s2_ms)) return (bool)(_ret) } func (this *QByteArray) OperatorGreater(s2 string) bool { s2_ms := miqt_strdupg(s2) defer C.free(s2_ms) _ret := C.QByteArray_OperatorGreater(this.h, (*C.struct_miqt_string)(s2_ms)) return (bool)(_ret) } func (this *QByteArray) OperatorLesserOrEqual(s2 string) bool { s2_ms := miqt_strdupg(s2) defer C.free(s2_ms) _ret := C.QByteArray_OperatorLesserOrEqual(this.h, (*C.struct_miqt_string)(s2_ms)) return (bool)(_ret) } func (this *QByteArray) OperatorGreaterOrEqual(s2 string) bool { s2_ms := miqt_strdupg(s2) defer C.free(s2_ms) _ret := C.QByteArray_OperatorGreaterOrEqual(this.h, (*C.struct_miqt_string)(s2_ms)) return (bool)(_ret) } func (this *QByteArray) ToShort() int16 { _ret := C.QByteArray_ToShort(this.h) return (int16)(_ret) } func (this *QByteArray) ToUShort() uint16 { _ret := C.QByteArray_ToUShort(this.h) return (uint16)(_ret) } func (this *QByteArray) ToInt() int { _ret := C.QByteArray_ToInt(this.h) return (int)(_ret) } func (this *QByteArray) ToUInt() uint { _ret := C.QByteArray_ToUInt(this.h) return (uint)(_ret) } func (this *QByteArray) ToLong() int64 { _ret := C.QByteArray_ToLong(this.h) return (int64)(_ret) } func (this *QByteArray) ToULong() uint64 { _ret := C.QByteArray_ToULong(this.h) return (uint64)(_ret) } func (this *QByteArray) ToLongLong() int64 { _ret := C.QByteArray_ToLongLong(this.h) return (int64)(_ret) } func (this *QByteArray) ToULongLong() uint64 { _ret := C.QByteArray_ToULongLong(this.h) return (uint64)(_ret) } func (this *QByteArray) ToFloat() float32 { _ret := C.QByteArray_ToFloat(this.h) return (float32)(_ret) } func (this *QByteArray) ToDouble() float64 { _ret := C.QByteArray_ToDouble(this.h) return (float64)(_ret) } func (this *QByteArray) ToBase64(options int) *QByteArray { _ret := C.QByteArray_ToBase64(this.h, (C.int)(options)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) ToBase642() *QByteArray { _ret := C.QByteArray_ToBase642(this.h) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) ToHex() *QByteArray { _ret := C.QByteArray_ToHex(this.h) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) ToHexWithSeparator(separator byte) *QByteArray { _ret := C.QByteArray_ToHexWithSeparator(this.h, (C.char)(separator)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) ToPercentEncoding() *QByteArray { _ret := C.QByteArray_ToPercentEncoding(this.h) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) SetNum(param1 int16) *QByteArray { _ret := C.QByteArray_SetNum(this.h, (C.int16_t)(param1)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNumWithUshort(param1 uint16) *QByteArray { _ret := C.QByteArray_SetNumWithUshort(this.h, (C.uint16_t)(param1)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNumWithInt(param1 int) *QByteArray { _ret := C.QByteArray_SetNumWithInt(this.h, (C.int)(param1)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNumWithUint(param1 uint) *QByteArray { _ret := C.QByteArray_SetNumWithUint(this.h, (C.uint)(param1)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNumWithQlonglong(param1 int64) *QByteArray { _ret := C.QByteArray_SetNumWithQlonglong(this.h, (C.longlong)(param1)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNumWithQulonglong(param1 uint64) *QByteArray { _ret := C.QByteArray_SetNumWithQulonglong(this.h, (C.ulonglong)(param1)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNumWithFloat(param1 float32) *QByteArray { _ret := C.QByteArray_SetNumWithFloat(this.h, (C.float)(param1)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNumWithDouble(param1 float64) *QByteArray { _ret := C.QByteArray_SetNumWithDouble(this.h, (C.double)(param1)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetRawData(a string, n uint) *QByteArray { a_Cstring := C.CString(a) defer C.free(unsafe.Pointer(a_Cstring)) _ret := C.QByteArray_SetRawData(this.h, a_Cstring, (C.uint)(n)) return newQByteArray_U(unsafe.Pointer(_ret)) } func QByteArray_Number(param1 int) *QByteArray { _ret := C.QByteArray_Number((C.int)(param1)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_NumberWithUint(param1 uint) *QByteArray { _ret := C.QByteArray_NumberWithUint((C.uint)(param1)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_NumberWithQlonglong(param1 int64) *QByteArray { _ret := C.QByteArray_NumberWithQlonglong((C.longlong)(param1)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_NumberWithQulonglong(param1 uint64) *QByteArray { _ret := C.QByteArray_NumberWithQulonglong((C.ulonglong)(param1)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_NumberWithDouble(param1 float64) *QByteArray { _ret := C.QByteArray_NumberWithDouble((C.double)(param1)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_FromRawData(param1 string, size int) *QByteArray { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) _ret := C.QByteArray_FromRawData(param1_Cstring, (C.int)(size)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_FromBase64Encoding(base64 *QByteArray) *QByteArray__FromBase64Result { _ret := C.QByteArray_FromBase64Encoding(base64.cPointer()) _goptr := newQByteArray__FromBase64Result(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_FromBase64(base64 *QByteArray, options int) *QByteArray { _ret := C.QByteArray_FromBase64(base64.cPointer(), (C.int)(options)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_FromBase64WithBase64(base64 *QByteArray) *QByteArray { _ret := C.QByteArray_FromBase64WithBase64(base64.cPointer()) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_FromHex(hexEncoded *QByteArray) *QByteArray { _ret := C.QByteArray_FromHex(hexEncoded.cPointer()) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_FromPercentEncoding(pctEncoded *QByteArray) *QByteArray { _ret := C.QByteArray_FromPercentEncoding(pctEncoded.cPointer()) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) Begin() unsafe.Pointer { _ret := C.QByteArray_Begin(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) Begin2() unsafe.Pointer { _ret := C.QByteArray_Begin2(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) Cbegin() unsafe.Pointer { _ret := C.QByteArray_Cbegin(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) ConstBegin() unsafe.Pointer { _ret := C.QByteArray_ConstBegin(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) End() unsafe.Pointer { _ret := C.QByteArray_End(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) End2() unsafe.Pointer { _ret := C.QByteArray_End2(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) Cend() unsafe.Pointer { _ret := C.QByteArray_Cend(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) ConstEnd() unsafe.Pointer { _ret := C.QByteArray_ConstEnd(this.h) return (unsafe.Pointer)(_ret) } func (this *QByteArray) PushBack(c byte) { C.QByteArray_PushBack(this.h, (C.char)(c)) } func (this *QByteArray) PushBackWithChar(c string) { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) C.QByteArray_PushBackWithChar(this.h, c_Cstring) } func (this *QByteArray) PushBackWithQByteArray(a *QByteArray) { C.QByteArray_PushBackWithQByteArray(this.h, a.cPointer()) } func (this *QByteArray) PushFront(c byte) { C.QByteArray_PushFront(this.h, (C.char)(c)) } func (this *QByteArray) PushFrontWithChar(c string) { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) C.QByteArray_PushFrontWithChar(this.h, c_Cstring) } func (this *QByteArray) PushFrontWithQByteArray(a *QByteArray) { C.QByteArray_PushFrontWithQByteArray(this.h, a.cPointer()) } func (this *QByteArray) ShrinkToFit() { C.QByteArray_ShrinkToFit(this.h) } func (this *QByteArray) Count2() int { _ret := C.QByteArray_Count2(this.h) return (int)(_ret) } func (this *QByteArray) Length() int { _ret := C.QByteArray_Length(this.h) return (int)(_ret) } func (this *QByteArray) IsNull() bool { _ret := C.QByteArray_IsNull(this.h) return (bool)(_ret) } func (this *QByteArray) Fill2(c byte, size int) *QByteArray { _ret := C.QByteArray_Fill2(this.h, (C.char)(c), (C.int)(size)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) IndexOf2(c byte, from int) int { _ret := C.QByteArray_IndexOf2(this.h, (C.char)(c), (C.int)(from)) return (int)(_ret) } func (this *QByteArray) IndexOf22(c string, from int) int { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) _ret := C.QByteArray_IndexOf22(this.h, c_Cstring, (C.int)(from)) return (int)(_ret) } func (this *QByteArray) IndexOf23(a *QByteArray, from int) int { _ret := C.QByteArray_IndexOf23(this.h, a.cPointer(), (C.int)(from)) return (int)(_ret) } func (this *QByteArray) LastIndexOf2(c byte, from int) int { _ret := C.QByteArray_LastIndexOf2(this.h, (C.char)(c), (C.int)(from)) return (int)(_ret) } func (this *QByteArray) LastIndexOf22(c string, from int) int { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) _ret := C.QByteArray_LastIndexOf22(this.h, c_Cstring, (C.int)(from)) return (int)(_ret) } func (this *QByteArray) LastIndexOf23(a *QByteArray, from int) int { _ret := C.QByteArray_LastIndexOf23(this.h, a.cPointer(), (C.int)(from)) return (int)(_ret) } func (this *QByteArray) Compare2(c string, cs CaseSensitivity) int { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) _ret := C.QByteArray_Compare2(this.h, c_Cstring, (C.uintptr_t)(cs)) return (int)(_ret) } func (this *QByteArray) Compare22(a *QByteArray, cs CaseSensitivity) int { _ret := C.QByteArray_Compare22(this.h, a.cPointer(), (C.uintptr_t)(cs)) return (int)(_ret) } func (this *QByteArray) Mid2(index int, lenVal int) *QByteArray { _ret := C.QByteArray_Mid2(this.h, (C.int)(index), (C.int)(lenVal)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) LeftJustified2(width int, fill byte) *QByteArray { _ret := C.QByteArray_LeftJustified2(this.h, (C.int)(width), (C.char)(fill)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) LeftJustified3(width int, fill byte, truncate bool) *QByteArray { _ret := C.QByteArray_LeftJustified3(this.h, (C.int)(width), (C.char)(fill), (C.bool)(truncate)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) RightJustified2(width int, fill byte) *QByteArray { _ret := C.QByteArray_RightJustified2(this.h, (C.int)(width), (C.char)(fill)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) RightJustified3(width int, fill byte, truncate bool) *QByteArray { _ret := C.QByteArray_RightJustified3(this.h, (C.int)(width), (C.char)(fill), (C.bool)(truncate)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) IndexOf24(s string, from int) int { s_ms := miqt_strdupg(s) defer C.free(s_ms) _ret := C.QByteArray_IndexOf24(this.h, (*C.struct_miqt_string)(s_ms), (C.int)(from)) return (int)(_ret) } func (this *QByteArray) LastIndexOf24(s string, from int) int { s_ms := miqt_strdupg(s) defer C.free(s_ms) _ret := C.QByteArray_LastIndexOf24(this.h, (*C.struct_miqt_string)(s_ms), (C.int)(from)) return (int)(_ret) } func (this *QByteArray) ToShort1(ok *bool) int16 { _ret := C.QByteArray_ToShort1(this.h, (*C.bool)(unsafe.Pointer(ok))) return (int16)(_ret) } func (this *QByteArray) ToShort2(ok *bool, base int) int16 { _ret := C.QByteArray_ToShort2(this.h, (*C.bool)(unsafe.Pointer(ok)), (C.int)(base)) return (int16)(_ret) } func (this *QByteArray) ToUShort1(ok *bool) uint16 { _ret := C.QByteArray_ToUShort1(this.h, (*C.bool)(unsafe.Pointer(ok))) return (uint16)(_ret) } func (this *QByteArray) ToUShort2(ok *bool, base int) uint16 { _ret := C.QByteArray_ToUShort2(this.h, (*C.bool)(unsafe.Pointer(ok)), (C.int)(base)) return (uint16)(_ret) } func (this *QByteArray) ToInt1(ok *bool) int { _ret := C.QByteArray_ToInt1(this.h, (*C.bool)(unsafe.Pointer(ok))) return (int)(_ret) } func (this *QByteArray) ToInt2(ok *bool, base int) int { _ret := C.QByteArray_ToInt2(this.h, (*C.bool)(unsafe.Pointer(ok)), (C.int)(base)) return (int)(_ret) } func (this *QByteArray) ToUInt1(ok *bool) uint { _ret := C.QByteArray_ToUInt1(this.h, (*C.bool)(unsafe.Pointer(ok))) return (uint)(_ret) } func (this *QByteArray) ToUInt2(ok *bool, base int) uint { _ret := C.QByteArray_ToUInt2(this.h, (*C.bool)(unsafe.Pointer(ok)), (C.int)(base)) return (uint)(_ret) } func (this *QByteArray) ToLong1(ok *bool) int64 { _ret := C.QByteArray_ToLong1(this.h, (*C.bool)(unsafe.Pointer(ok))) return (int64)(_ret) } func (this *QByteArray) ToLong2(ok *bool, base int) int64 { _ret := C.QByteArray_ToLong2(this.h, (*C.bool)(unsafe.Pointer(ok)), (C.int)(base)) return (int64)(_ret) } func (this *QByteArray) ToULong1(ok *bool) uint64 { _ret := C.QByteArray_ToULong1(this.h, (*C.bool)(unsafe.Pointer(ok))) return (uint64)(_ret) } func (this *QByteArray) ToULong2(ok *bool, base int) uint64 { _ret := C.QByteArray_ToULong2(this.h, (*C.bool)(unsafe.Pointer(ok)), (C.int)(base)) return (uint64)(_ret) } func (this *QByteArray) ToLongLong1(ok *bool) int64 { _ret := C.QByteArray_ToLongLong1(this.h, (*C.bool)(unsafe.Pointer(ok))) return (int64)(_ret) } func (this *QByteArray) ToLongLong2(ok *bool, base int) int64 { _ret := C.QByteArray_ToLongLong2(this.h, (*C.bool)(unsafe.Pointer(ok)), (C.int)(base)) return (int64)(_ret) } func (this *QByteArray) ToULongLong1(ok *bool) uint64 { _ret := C.QByteArray_ToULongLong1(this.h, (*C.bool)(unsafe.Pointer(ok))) return (uint64)(_ret) } func (this *QByteArray) ToULongLong2(ok *bool, base int) uint64 { _ret := C.QByteArray_ToULongLong2(this.h, (*C.bool)(unsafe.Pointer(ok)), (C.int)(base)) return (uint64)(_ret) } func (this *QByteArray) ToFloat1(ok *bool) float32 { _ret := C.QByteArray_ToFloat1(this.h, (*C.bool)(unsafe.Pointer(ok))) return (float32)(_ret) } func (this *QByteArray) ToDouble1(ok *bool) float64 { _ret := C.QByteArray_ToDouble1(this.h, (*C.bool)(unsafe.Pointer(ok))) return (float64)(_ret) } func (this *QByteArray) ToPercentEncoding1(exclude *QByteArray) *QByteArray { _ret := C.QByteArray_ToPercentEncoding1(this.h, exclude.cPointer()) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) ToPercentEncoding2(exclude *QByteArray, include *QByteArray) *QByteArray { _ret := C.QByteArray_ToPercentEncoding2(this.h, exclude.cPointer(), include.cPointer()) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) ToPercentEncoding3(exclude *QByteArray, include *QByteArray, percent byte) *QByteArray { _ret := C.QByteArray_ToPercentEncoding3(this.h, exclude.cPointer(), include.cPointer(), (C.char)(percent)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QByteArray) SetNum2(param1 int16, base int) *QByteArray { _ret := C.QByteArray_SetNum2(this.h, (C.int16_t)(param1), (C.int)(base)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNum22(param1 uint16, base int) *QByteArray { _ret := C.QByteArray_SetNum22(this.h, (C.uint16_t)(param1), (C.int)(base)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNum23(param1 int, base int) *QByteArray { _ret := C.QByteArray_SetNum23(this.h, (C.int)(param1), (C.int)(base)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNum24(param1 uint, base int) *QByteArray { _ret := C.QByteArray_SetNum24(this.h, (C.uint)(param1), (C.int)(base)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNum25(param1 int64, base int) *QByteArray { _ret := C.QByteArray_SetNum25(this.h, (C.longlong)(param1), (C.int)(base)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNum26(param1 uint64, base int) *QByteArray { _ret := C.QByteArray_SetNum26(this.h, (C.ulonglong)(param1), (C.int)(base)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNum27(param1 float32, f byte) *QByteArray { _ret := C.QByteArray_SetNum27(this.h, (C.float)(param1), (C.char)(f)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNum3(param1 float32, f byte, prec int) *QByteArray { _ret := C.QByteArray_SetNum3(this.h, (C.float)(param1), (C.char)(f), (C.int)(prec)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNum28(param1 float64, f byte) *QByteArray { _ret := C.QByteArray_SetNum28(this.h, (C.double)(param1), (C.char)(f)) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray) SetNum32(param1 float64, f byte, prec int) *QByteArray { _ret := C.QByteArray_SetNum32(this.h, (C.double)(param1), (C.char)(f), (C.int)(prec)) return newQByteArray_U(unsafe.Pointer(_ret)) } func QByteArray_Number2(param1 int, base int) *QByteArray { _ret := C.QByteArray_Number2((C.int)(param1), (C.int)(base)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_Number22(param1 uint, base int) *QByteArray { _ret := C.QByteArray_Number22((C.uint)(param1), (C.int)(base)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_Number23(param1 int64, base int) *QByteArray { _ret := C.QByteArray_Number23((C.longlong)(param1), (C.int)(base)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_Number24(param1 uint64, base int) *QByteArray { _ret := C.QByteArray_Number24((C.ulonglong)(param1), (C.int)(base)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_Number25(param1 float64, f byte) *QByteArray { _ret := C.QByteArray_Number25((C.double)(param1), (C.char)(f)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_Number3(param1 float64, f byte, prec int) *QByteArray { _ret := C.QByteArray_Number3((C.double)(param1), (C.char)(f), (C.int)(prec)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_FromBase64Encoding2(base64 *QByteArray, options int) *QByteArray__FromBase64Result { _ret := C.QByteArray_FromBase64Encoding2(base64.cPointer(), (C.int)(options)) _goptr := newQByteArray__FromBase64Result(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QByteArray_FromPercentEncoding2(pctEncoded *QByteArray, percent byte) *QByteArray { _ret := C.QByteArray_FromPercentEncoding2(pctEncoded.cPointer(), (C.char)(percent)) _goptr := newQByteArray(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } // Delete this object from C++ memory. func (this *QByteArray) Delete() { C.QByteArray_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 *QByteArray) GoGC() { runtime.SetFinalizer(this, func(this *QByteArray) { this.Delete() runtime.KeepAlive(this.h) }) } type QByteRef struct { h *C.QByteRef } func (this *QByteRef) cPointer() *C.QByteRef { if this == nil { return nil } return this.h } func newQByteRef(h *C.QByteRef) *QByteRef { if h == nil { return nil } return &QByteRef{h: h} } func newQByteRef_U(h unsafe.Pointer) *QByteRef { return newQByteRef((*C.QByteRef)(h)) } // NewQByteRef constructs a new QByteRef object. func NewQByteRef(param1 *QByteRef) *QByteRef { ret := C.QByteRef_new(param1.cPointer()) return newQByteRef(ret) } func (this *QByteRef) OperatorAssign(c byte) { C.QByteRef_OperatorAssign(this.h, (C.char)(c)) } func (this *QByteRef) OperatorAssignWithQByteRef(c *QByteRef) { C.QByteRef_OperatorAssignWithQByteRef(this.h, c.cPointer()) } func (this *QByteRef) OperatorEqual(c byte) bool { _ret := C.QByteRef_OperatorEqual(this.h, (C.char)(c)) return (bool)(_ret) } func (this *QByteRef) OperatorNotEqual(c byte) bool { _ret := C.QByteRef_OperatorNotEqual(this.h, (C.char)(c)) return (bool)(_ret) } func (this *QByteRef) OperatorGreater(c byte) bool { _ret := C.QByteRef_OperatorGreater(this.h, (C.char)(c)) return (bool)(_ret) } func (this *QByteRef) OperatorGreaterOrEqual(c byte) bool { _ret := C.QByteRef_OperatorGreaterOrEqual(this.h, (C.char)(c)) return (bool)(_ret) } func (this *QByteRef) OperatorLesser(c byte) bool { _ret := C.QByteRef_OperatorLesser(this.h, (C.char)(c)) return (bool)(_ret) } func (this *QByteRef) OperatorLesserOrEqual(c byte) bool { _ret := C.QByteRef_OperatorLesserOrEqual(this.h, (C.char)(c)) return (bool)(_ret) } // Delete this object from C++ memory. func (this *QByteRef) Delete() { C.QByteRef_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 *QByteRef) GoGC() { runtime.SetFinalizer(this, func(this *QByteRef) { this.Delete() runtime.KeepAlive(this.h) }) } type QByteArray__FromBase64Result struct { h *C.QByteArray__FromBase64Result } func (this *QByteArray__FromBase64Result) cPointer() *C.QByteArray__FromBase64Result { if this == nil { return nil } return this.h } func newQByteArray__FromBase64Result(h *C.QByteArray__FromBase64Result) *QByteArray__FromBase64Result { if h == nil { return nil } return &QByteArray__FromBase64Result{h: h} } func newQByteArray__FromBase64Result_U(h unsafe.Pointer) *QByteArray__FromBase64Result { return newQByteArray__FromBase64Result((*C.QByteArray__FromBase64Result)(h)) } // NewQByteArray__FromBase64Result constructs a new QByteArray::FromBase64Result object. func NewQByteArray__FromBase64Result(param1 *QByteArray__FromBase64Result) *QByteArray__FromBase64Result { ret := C.QByteArray__FromBase64Result_new(param1.cPointer()) return newQByteArray__FromBase64Result(ret) } func (this *QByteArray__FromBase64Result) Swap(other *QByteArray__FromBase64Result) { C.QByteArray__FromBase64Result_Swap(this.h, other.cPointer()) } func (this *QByteArray__FromBase64Result) OperatorMultiply() *QByteArray { _ret := C.QByteArray__FromBase64Result_OperatorMultiply(this.h) return newQByteArray_U(unsafe.Pointer(_ret)) } func (this *QByteArray__FromBase64Result) OperatorMultiply2() *QByteArray { _ret := C.QByteArray__FromBase64Result_OperatorMultiply2(this.h) return newQByteArray_U(unsafe.Pointer(_ret)) } // Delete this object from C++ memory. func (this *QByteArray__FromBase64Result) Delete() { C.QByteArray__FromBase64Result_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 *QByteArray__FromBase64Result) GoGC() { runtime.SetFinalizer(this, func(this *QByteArray__FromBase64Result) { this.Delete() runtime.KeepAlive(this.h) }) }