本文整理汇总了Golang中github.com/therecipe/qt/core.NewQByteArrayFromPointer函数的典型用法代码示例。如果您正苦于以下问题:Golang NewQByteArrayFromPointer函数的具体用法?Golang NewQByteArrayFromPointer怎么用?Golang NewQByteArrayFromPointer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewQByteArrayFromPointer函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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)
}
}
示例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))
}
}
示例3: SaveState
func (ptr *QHeaderView) SaveState() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QHeaderView_SaveState(ptr.Pointer()))
}
return nil
}
示例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
}
示例5: SerialNumber
func (ptr *QSslCertificate) SerialNumber() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QSslCertificate_SerialNumber(ptr.Pointer()))
}
return nil
}
示例6: Value
func (ptr *QNetworkCookie) Value() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QNetworkCookie_Value(ptr.Pointer()))
}
return nil
}
示例7: Boundary
func (ptr *QHttpMultiPart) Boundary() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QHttpMultiPart_Boundary(ptr.Pointer()))
}
return nil
}
示例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
}
示例9: Format
func (ptr *QImageReader) Format() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QImageReader_Format(ptr.Pointer()))
}
return nil
}
示例10: PreSharedKey
func (ptr *QSslPreSharedKeyAuthenticator) PreSharedKey() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QSslPreSharedKeyAuthenticator_PreSharedKey(ptr.Pointer()))
}
return nil
}
示例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
}
示例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
}
示例13: Payload
func (ptr *QNdefRecord) Payload() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QNdefRecord_Payload(ptr.Pointer()))
}
return nil
}
示例14: QDBusConnection_LocalMachineId
func QDBusConnection_LocalMachineId() *core.QByteArray {
return core.NewQByteArrayFromPointer(C.QDBusConnection_QDBusConnection_LocalMachineId())
}
示例15: Format
func (ptr *QMovie) Format() *core.QByteArray {
if ptr.Pointer() != nil {
return core.NewQByteArrayFromPointer(C.QMovie_Format(ptr.Pointer()))
}
return nil
}