miqt/qt/gen_qdatastream.go

305 lines
8.8 KiB
Go
Raw Normal View History

package qt
/*
#cgo CFLAGS: -fPIC
#cgo pkg-config: Qt5Widgets
#include "gen_qdatastream.h"
#include <stdlib.h>
*/
import "C"
import (
"unsafe"
)
type QDataStream struct {
h *C.QDataStream
}
func (this *QDataStream) cPointer() *C.QDataStream {
if this == nil {
return nil
}
return this.h
}
func newQDataStream(h *C.QDataStream) *QDataStream {
return &QDataStream{h: h}
}
func newQDataStream_U(h unsafe.Pointer) *QDataStream {
return newQDataStream((*C.QDataStream)(h))
}
// NewQDataStream constructs a new QDataStream object.
func NewQDataStream() *QDataStream {
ret := C.QDataStream_new()
return newQDataStream(ret)
}
// NewQDataStream2 constructs a new QDataStream object.
func NewQDataStream2(param1 *QIODevice) *QDataStream {
ret := C.QDataStream_new2(param1.cPointer())
return newQDataStream(ret)
}
// NewQDataStream3 constructs a new QDataStream object.
2024-08-29 07:01:51 +00:00
func NewQDataStream3(param1 *QByteArray, flags int) *QDataStream {
ret := C.QDataStream_new3(param1.cPointer(), (C.int)(flags))
return newQDataStream(ret)
}
// NewQDataStream4 constructs a new QDataStream object.
func NewQDataStream4(param1 *QByteArray) *QDataStream {
ret := C.QDataStream_new4(param1.cPointer())
return newQDataStream(ret)
}
func (this *QDataStream) Device() *QIODevice {
ret := C.QDataStream_Device(this.h)
return newQIODevice_U(unsafe.Pointer(ret))
}
func (this *QDataStream) SetDevice(device *QIODevice) {
C.QDataStream_SetDevice(this.h, device.cPointer())
}
func (this *QDataStream) UnsetDevice() {
C.QDataStream_UnsetDevice(this.h)
}
func (this *QDataStream) AtEnd() bool {
ret := C.QDataStream_AtEnd(this.h)
return (bool)(ret)
}
2024-08-29 07:01:51 +00:00
func (this *QDataStream) Status() uintptr {
ret := C.QDataStream_Status(this.h)
return (uintptr)(ret)
}
func (this *QDataStream) SetStatus(status uintptr) {
C.QDataStream_SetStatus(this.h, (C.uintptr_t)(status))
}
func (this *QDataStream) ResetStatus() {
C.QDataStream_ResetStatus(this.h)
}
2024-08-29 07:01:51 +00:00
func (this *QDataStream) FloatingPointPrecision() uintptr {
ret := C.QDataStream_FloatingPointPrecision(this.h)
return (uintptr)(ret)
}
func (this *QDataStream) SetFloatingPointPrecision(precision uintptr) {
C.QDataStream_SetFloatingPointPrecision(this.h, (C.uintptr_t)(precision))
}
func (this *QDataStream) ByteOrder() uintptr {
ret := C.QDataStream_ByteOrder(this.h)
return (uintptr)(ret)
}
func (this *QDataStream) SetByteOrder(byteOrder uintptr) {
C.QDataStream_SetByteOrder(this.h, (C.uintptr_t)(byteOrder))
}
func (this *QDataStream) Version() int {
ret := C.QDataStream_Version(this.h)
return (int)(ret)
}
func (this *QDataStream) SetVersion(version int) {
C.QDataStream_SetVersion(this.h, (C.int)(version))
}
func (this *QDataStream) OperatorShiftRight(i *byte) {
2024-08-29 07:01:51 +00:00
C.QDataStream_OperatorShiftRight(this.h, (*C.schar)(unsafe.Pointer(i)))
}
func (this *QDataStream) OperatorShiftRightWithQuint8(i *byte) {
2024-08-29 07:01:51 +00:00
C.QDataStream_OperatorShiftRightWithQuint8(this.h, (*C.uchar)(unsafe.Pointer(i)))
}
func (this *QDataStream) OperatorShiftRightWithQint16(i *int16) {
C.QDataStream_OperatorShiftRightWithQint16(this.h, (*C.int16_t)(unsafe.Pointer(i)))
}
func (this *QDataStream) OperatorShiftRightWithQuint16(i *uint16) {
C.QDataStream_OperatorShiftRightWithQuint16(this.h, (*C.uint16_t)(unsafe.Pointer(i)))
}
2024-08-29 07:01:51 +00:00
func (this *QDataStream) OperatorShiftRightWithQint32(i *int) {
C.QDataStream_OperatorShiftRightWithQint32(this.h, (*C.int)(unsafe.Pointer(i)))
}
2024-08-29 07:01:51 +00:00
func (this *QDataStream) OperatorShiftRightWithQuint32(i *uint) {
C.QDataStream_OperatorShiftRightWithQuint32(this.h, (*C.uint)(unsafe.Pointer(i)))
}
func (this *QDataStream) OperatorShiftRightWithQint64(i *int64) {
2024-08-29 07:01:51 +00:00
C.QDataStream_OperatorShiftRightWithQint64(this.h, (*C.longlong)(unsafe.Pointer(i)))
}
func (this *QDataStream) OperatorShiftRightWithQuint64(i *uint64) {
2024-08-29 07:01:51 +00:00
C.QDataStream_OperatorShiftRightWithQuint64(this.h, (*C.ulonglong)(unsafe.Pointer(i)))
}
func (this *QDataStream) OperatorShiftRightWithBool(i *bool) {
C.QDataStream_OperatorShiftRightWithBool(this.h, (*C.bool)(unsafe.Pointer(i)))
}
func (this *QDataStream) OperatorShiftRightWithFloat(f *float32) {
C.QDataStream_OperatorShiftRightWithFloat(this.h, (*C.float)(unsafe.Pointer(f)))
}
func (this *QDataStream) OperatorShiftRightWithDouble(f *float64) {
C.QDataStream_OperatorShiftRightWithDouble(this.h, (*C.double)(unsafe.Pointer(f)))
}
2024-08-29 07:01:51 +00:00
func (this *QDataStream) OperatorShiftRightWithStr(str string) {
str_Cstring := C.CString(str)
defer C.free(unsafe.Pointer(str_Cstring))
C.QDataStream_OperatorShiftRightWithStr(this.h, str_Cstring)
}
func (this *QDataStream) OperatorShiftLeft(i byte) {
2024-08-29 07:01:51 +00:00
C.QDataStream_OperatorShiftLeft(this.h, (C.schar)(i))
}
func (this *QDataStream) OperatorShiftLeftWithQuint8(i byte) {
2024-08-29 07:01:51 +00:00
C.QDataStream_OperatorShiftLeftWithQuint8(this.h, (C.uchar)(i))
}
func (this *QDataStream) OperatorShiftLeftWithQint16(i int16) {
C.QDataStream_OperatorShiftLeftWithQint16(this.h, (C.int16_t)(i))
}
func (this *QDataStream) OperatorShiftLeftWithQuint16(i uint16) {
C.QDataStream_OperatorShiftLeftWithQuint16(this.h, (C.uint16_t)(i))
}
2024-08-29 07:01:51 +00:00
func (this *QDataStream) OperatorShiftLeftWithQint32(i int) {
C.QDataStream_OperatorShiftLeftWithQint32(this.h, (C.int)(i))
}
2024-08-29 07:01:51 +00:00
func (this *QDataStream) OperatorShiftLeftWithQuint32(i uint) {
C.QDataStream_OperatorShiftLeftWithQuint32(this.h, (C.uint)(i))
}
func (this *QDataStream) OperatorShiftLeftWithQint64(i int64) {
2024-08-29 07:01:51 +00:00
C.QDataStream_OperatorShiftLeftWithQint64(this.h, (C.longlong)(i))
}
func (this *QDataStream) OperatorShiftLeftWithQuint64(i uint64) {
2024-08-29 07:01:51 +00:00
C.QDataStream_OperatorShiftLeftWithQuint64(this.h, (C.ulonglong)(i))
}
func (this *QDataStream) OperatorShiftLeftWithBool(i bool) {
C.QDataStream_OperatorShiftLeftWithBool(this.h, (C.bool)(i))
}
func (this *QDataStream) OperatorShiftLeftWithFloat(f float32) {
C.QDataStream_OperatorShiftLeftWithFloat(this.h, (C.float)(f))
}
func (this *QDataStream) OperatorShiftLeftWithDouble(f float64) {
C.QDataStream_OperatorShiftLeftWithDouble(this.h, (C.double)(f))
}
func (this *QDataStream) OperatorShiftLeftWithStr(str string) {
str_Cstring := C.CString(str)
defer C.free(unsafe.Pointer(str_Cstring))
C.QDataStream_OperatorShiftLeftWithStr(this.h, str_Cstring)
}
2024-08-29 07:01:51 +00:00
func (this *QDataStream) ReadBytes(param1 string, lenVal *uint) *QDataStream {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
ret := C.QDataStream_ReadBytes(this.h, param1_Cstring, (*C.uint)(unsafe.Pointer(lenVal)))
return newQDataStream_U(unsafe.Pointer(ret))
}
func (this *QDataStream) ReadRawData(param1 string, lenVal int) int {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
ret := C.QDataStream_ReadRawData(this.h, param1_Cstring, (C.int)(lenVal))
return (int)(ret)
}
func (this *QDataStream) WriteBytes(param1 string, lenVal uint) {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
C.QDataStream_WriteBytes(this.h, param1_Cstring, (C.uint)(lenVal))
}
func (this *QDataStream) WriteRawData(param1 string, lenVal int) int {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
ret := C.QDataStream_WriteRawData(this.h, param1_Cstring, (C.int)(lenVal))
return (int)(ret)
}
func (this *QDataStream) SkipRawData(lenVal int) int {
ret := C.QDataStream_SkipRawData(this.h, (C.int)(lenVal))
return (int)(ret)
}
func (this *QDataStream) StartTransaction() {
C.QDataStream_StartTransaction(this.h)
}
func (this *QDataStream) CommitTransaction() bool {
ret := C.QDataStream_CommitTransaction(this.h)
return (bool)(ret)
}
func (this *QDataStream) RollbackTransaction() {
C.QDataStream_RollbackTransaction(this.h)
}
func (this *QDataStream) AbortTransaction() {
C.QDataStream_AbortTransaction(this.h)
}
func (this *QDataStream) Delete() {
C.QDataStream_Delete(this.h)
}
2024-08-29 07:01:51 +00:00
type QtPrivate__StreamStateSaver struct {
h *C.QtPrivate__StreamStateSaver
}
func (this *QtPrivate__StreamStateSaver) cPointer() *C.QtPrivate__StreamStateSaver {
if this == nil {
return nil
}
return this.h
}
func newQtPrivate__StreamStateSaver(h *C.QtPrivate__StreamStateSaver) *QtPrivate__StreamStateSaver {
return &QtPrivate__StreamStateSaver{h: h}
}
func newQtPrivate__StreamStateSaver_U(h unsafe.Pointer) *QtPrivate__StreamStateSaver {
return newQtPrivate__StreamStateSaver((*C.QtPrivate__StreamStateSaver)(h))
}
// NewQtPrivate__StreamStateSaver constructs a new QtPrivate::StreamStateSaver object.
func NewQtPrivate__StreamStateSaver(s *QDataStream) *QtPrivate__StreamStateSaver {
ret := C.QtPrivate__StreamStateSaver_new(s.cPointer())
return newQtPrivate__StreamStateSaver(ret)
}
// NewQtPrivate__StreamStateSaver2 constructs a new QtPrivate::StreamStateSaver object.
func NewQtPrivate__StreamStateSaver2(param1 *QtPrivate__StreamStateSaver) *QtPrivate__StreamStateSaver {
ret := C.QtPrivate__StreamStateSaver_new2(param1.cPointer())
return newQtPrivate__StreamStateSaver(ret)
}
func (this *QtPrivate__StreamStateSaver) Delete() {
C.QtPrivate__StreamStateSaver_Delete(this.h)
}