本文整理汇总了Golang中github.com/therecipe/qt/core.NewQByteArrayFromPointer函数的典型用法代码示例。如果您正苦于以下问题:Golang NewQByteArrayFromPointer函数的具体用法?Golang NewQByteArrayFromPointer怎么用?Golang NewQByteArrayFromPointer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewQByteArrayFromPointer函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: callbackQWebSocketBinaryFrameReceived
//export callbackQWebSocketBinaryFrameReceived
func callbackQWebSocketBinaryFrameReceived(ptr unsafe.Pointer, ptrName *C.char, frame unsafe.Pointer, isLastFrame C.int) {
defer qt.Recovering("callback QWebSocket::binaryFrameReceived")
if signal := qt.GetSignal(C.GoString(ptrName), "binaryFrameReceived"); signal != nil {
signal.(func(*core.QByteArray, bool))(core.NewQByteArrayFromPointer(frame), int(isLastFrame) != 0)
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例2: callbackQWebSocketBinaryMessageReceived
//export callbackQWebSocketBinaryMessageReceived
func callbackQWebSocketBinaryMessageReceived(ptr unsafe.Pointer, ptrName *C.char, message unsafe.Pointer) {
defer qt.Recovering("callback QWebSocket::binaryMessageReceived")
if signal := qt.GetSignal(C.GoString(ptrName), "binaryMessageReceived"); signal != nil {
signal.(func(*core.QByteArray))(core.NewQByteArrayFromPointer(message))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例3: SaveState
func (ptr *QHeaderView) SaveState() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QHeaderView_SaveState(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qheaderview.go
示例4: Digest
func (ptr *QSslCertificate) Digest(algorithm core.QCryptographicHash__Algorithm) *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QSslCertificate_Digest(ptr.Pointer(), C.int(algorithm)))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qsslcertificate.go
示例5: SerialNumber
func (ptr *QSslCertificate) SerialNumber() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QSslCertificate_SerialNumber(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qsslcertificate.go
示例6: Value
func (ptr *QNetworkCookie) Value() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QNetworkCookie_Value(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qnetworkcookie.go
示例7: Boundary
func (ptr *QHttpMultiPart) Boundary() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QHttpMultiPart_Boundary(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qhttpmultipart.go
示例8: ToByteArray
func (ptr *QDomDocument) ToByteArray(indent int) *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QDomDocument_ToByteArray(ptr.Pointer(), C.int(indent)))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qdomdocument.go
示例9: Format
func (ptr *QImageReader) Format() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QImageReader_Format(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qimagereader.go
示例10: PreSharedKey
func (ptr *QSslPreSharedKeyAuthenticator) PreSharedKey() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QSslPreSharedKeyAuthenticator_PreSharedKey(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qsslpresharedkeyauthenticator.go
示例11: MappedPropertyName
func (ptr *QDataWidgetMapper) MappedPropertyName(widget QWidget_ITF) *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QDataWidgetMapper_MappedPropertyName(ptr.Pointer(), PointerFromQWidget(widget)))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qdatawidgetmapper.go
示例12: ToPem
func (ptr *QSslKey) ToPem(passPhrase core.QByteArray_ITF) *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QSslKey_ToPem(ptr.Pointer(), core.PointerFromQByteArray(passPhrase)))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qsslkey.go
示例13: Payload
func (ptr *QNdefRecord) Payload() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QNdefRecord_Payload(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qndefrecord.go
示例14: QDBusConnection_LocalMachineId
func QDBusConnection_LocalMachineId() *core.QByteArray {
return core.NewQByteArrayFromPointer(C.QDBusConnection_QDBusConnection_LocalMachineId())
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qdbusconnection.go
示例15: Format
func (ptr *QMovie) Format() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QMovie_Format(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qmovie.go
示例16: Format
func (ptr *QTextDocumentWriter) Format() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QTextDocumentWriter_Format(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qtextdocumentwriter.go
示例17: SaveState
func (ptr *QFileDialog) SaveState() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QFileDialog_SaveState(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qfiledialog.go
示例18: QImageReader_ImageFormat3
func QImageReader_ImageFormat3(device core.QIODevice_ITF) *core.QByteArray {
return core.NewQByteArrayFromPointer(C.QImageReader_QImageReader_ImageFormat3(core.PointerFromQIODevice(device)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qimagereader.go
示例19: QImageReader_ImageFormat2
func QImageReader_ImageFormat2(fileName string) *core.QByteArray {
return core.NewQByteArrayFromPointer(C.QImageReader_QImageReader_ImageFormat2(C.CString(fileName)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qimagereader.go
示例20: SubType
func (ptr *QImageReader) SubType() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QImageReader_SubType(ptr.Pointer()))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qimagereader.go
注:本文中的github.com/therecipe/qt/core.NewQByteArrayFromPointer函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论