当前位置: 首页>>代码示例>>Golang>>正文


Golang core.PointerFromQByteArray函数代码示例

本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQByteArray函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQByteArray函数的具体用法?Golang PointerFromQByteArray怎么用?Golang PointerFromQByteArray使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了PointerFromQByteArray函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: BinaryFrameReceived

func (ptr *QWebSocket) BinaryFrameReceived(frame core.QByteArray_ITF, isLastFrame bool) {
	defer qt.Recovering("QWebSocket::binaryFrameReceived")

	if ptr.Pointer() != nil {
		C.QWebSocket_BinaryFrameReceived(ptr.Pointer(), core.PointerFromQByteArray(frame), C.int(qt.GoBoolToInt(isLastFrame)))
	}
}
开发者ID:mouse225,项目名称:qt,代码行数:7,代码来源:websockets.go

示例2: BinaryMessageReceived

func (ptr *QWebSocket) BinaryMessageReceived(message core.QByteArray_ITF) {
	defer qt.Recovering("QWebSocket::binaryMessageReceived")

	if ptr.Pointer() != nil {
		C.QWebSocket_BinaryMessageReceived(ptr.Pointer(), core.PointerFromQByteArray(message))
	}
}
开发者ID:mouse225,项目名称:qt,代码行数:7,代码来源:websockets.go

示例3: Ping

func (ptr *QWebSocket) Ping(payload core.QByteArray_ITF) {
	defer qt.Recovering("QWebSocket::ping")

	if ptr.Pointer() != nil {
		C.QWebSocket_Ping(ptr.Pointer(), core.PointerFromQByteArray(payload))
	}
}
开发者ID:mouse225,项目名称:qt,代码行数:7,代码来源:websockets.go

示例4: SendBinaryMessage

func (ptr *QWebSocket) SendBinaryMessage(data core.QByteArray_ITF) int64 {
	defer qt.Recovering("QWebSocket::sendBinaryMessage")

	if ptr.Pointer() != nil {
		return int64(C.QWebSocket_SendBinaryMessage(ptr.Pointer(), core.PointerFromQByteArray(data)))
	}
	return 0
}
开发者ID:mouse225,项目名称:qt,代码行数:8,代码来源:websockets.go

示例5: WriteDescriptor

func (ptr *QLowEnergyService) WriteDescriptor(descriptor QLowEnergyDescriptor_ITF, newValue core.QByteArray_ITF) {
	if ptr.Pointer() != nil {
		C.QLowEnergyService_WriteDescriptor(ptr.Pointer(), PointerFromQLowEnergyDescriptor(descriptor), core.PointerFromQByteArray(newValue))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qlowenergyservice.go

示例6: NewQNetworkCookie

func NewQNetworkCookie(name core.QByteArray_ITF, value core.QByteArray_ITF) *QNetworkCookie {
	return NewQNetworkCookieFromPointer(C.QNetworkCookie_NewQNetworkCookie(core.PointerFromQByteArray(name), core.PointerFromQByteArray(value)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qnetworkcookie.go

示例7: WriteCharacteristic

func (ptr *QLowEnergyService) WriteCharacteristic(characteristic QLowEnergyCharacteristic_ITF, newValue core.QByteArray_ITF, mode QLowEnergyService__WriteMode) {
	if ptr.Pointer() != nil {
		C.QLowEnergyService_WriteCharacteristic(ptr.Pointer(), PointerFromQLowEnergyCharacteristic(characteristic), core.PointerFromQByteArray(newValue), C.int(mode))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qlowenergyservice.go

示例8: SetFormat

func (ptr *QTextDocumentWriter) SetFormat(format core.QByteArray_ITF) {
	if ptr.Pointer() != nil {
		C.QTextDocumentWriter_SetFormat(ptr.Pointer(), core.PointerFromQByteArray(format))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtextdocumentwriter.go

示例9: SetValue

func (ptr *QNetworkCookie) SetValue(value core.QByteArray_ITF) {
	if ptr.Pointer() != nil {
		C.QNetworkCookie_SetValue(ptr.Pointer(), core.PointerFromQByteArray(value))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qnetworkcookie.go

示例10: ToHtml

func (ptr *QTextDocument) ToHtml(encoding core.QByteArray_ITF) string {
	if ptr.Pointer() != nil {
		return C.GoString(C.QTextDocument_ToHtml(ptr.Pointer(), core.PointerFromQByteArray(encoding)))
	}
	return ""
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qtextdocument.go

示例11: LoadData

func (ptr *QQmlApplicationEngine) LoadData(data core.QByteArray_ITF, url core.QUrl_ITF) {
	if ptr.Pointer() != nil {
		C.QQmlApplicationEngine_LoadData(ptr.Pointer(), core.PointerFromQByteArray(data), core.PointerFromQUrl(url))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qqmlapplicationengine.go

示例12: SetBody

func (ptr *QHttpPart) SetBody(body core.QByteArray_ITF) {
	if ptr.Pointer() != nil {
		C.QHttpPart_SetBody(ptr.Pointer(), core.PointerFromQByteArray(body))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qhttppart.go

示例13: SetData

func (ptr *QQmlComponent) SetData(data core.QByteArray_ITF, url core.QUrl_ITF) {
	if ptr.Pointer() != nil {
		C.QQmlComponent_SetData(ptr.Pointer(), core.PointerFromQByteArray(data), core.PointerFromQUrl(url))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qqmlcomponent.go

示例14: NewQTextDocumentWriter3

func NewQTextDocumentWriter3(fileName string, format core.QByteArray_ITF) *QTextDocumentWriter {
	return NewQTextDocumentWriterFromPointer(C.QTextDocumentWriter_NewQTextDocumentWriter3(C.CString(fileName), core.PointerFromQByteArray(format)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qtextdocumentwriter.go

示例15: NewQTextDocumentWriter2

func NewQTextDocumentWriter2(device core.QIODevice_ITF, format core.QByteArray_ITF) *QTextDocumentWriter {
	return NewQTextDocumentWriterFromPointer(C.QTextDocumentWriter_NewQTextDocumentWriter2(core.PointerFromQIODevice(device), core.PointerFromQByteArray(format)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qtextdocumentwriter.go


注:本文中的github.com/therecipe/qt/core.PointerFromQByteArray函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。