JNIEXPORT jlong JNICALL
Java_org_zeromq_czmq_Zframe__1_1from (JNIEnv *env, jclass c, jstring string)
{
    char *string_ = (char *) (*env)->GetStringUTFChars (env, string, NULL);
    jlong from_ = (jlong) (intptr_t) zframe_from (string_);
    (*env)->ReleaseStringUTFChars (env, string, string_);
    return from_;
}
Example #2
0
///
//  Create a frame with a specified string content.
QmlZframe *QmlZframeAttached::from (const QString &string) {
    QmlZframe *retQ_ = new QmlZframe ();
    retQ_->self = zframe_from (string.toUtf8().data());
    return retQ_;
};
Example #3
0
///
//  Create a frame with a specified string content.
QZframe * QZframe::from (const QString &string)
{
    QZframe *rv = new QZframe (zframe_from (string.toUtf8().data()));
    return rv;
}
Example #4
0
///
//  Create a frame with a specified string content.
QZframe* QZframe::from (const QString &string, QObject *qObjParent)
{
    return new QZframe (zframe_from (string.toUtf8().data()), qObjParent);
}
Example #5
0
///
//  Create a frame with a specified string content.
QmlZframe *QmlZframeAttached::from (const QString &string) {
    QmlZframe *qmlSelf = new QmlZframe ();
    qmlSelf->self = zframe_from (string.toUtf8().data());
    return qmlSelf;
};