示例#1
0
JNIEXPORT jstring JNICALL
Java_org_zeromq_czmq_Zchunk__1_1digest (JNIEnv *env, jclass c, jlong self)
{
    char *digest_ = (char *) zchunk_digest ((zchunk_t *) (intptr_t) self);
    jstring return_string_ = (*env)->NewStringUTF (env, digest_);
    return return_string_;
}
示例#2
0
void
hydra_post_set_data (hydra_post_t *self, const void *data, size_t size)
{
    assert (self);
    zstr_free (&self->location);
    zchunk_destroy (&self->content);
    self->content = zchunk_new (data, size);
    strcpy (self->digest, zchunk_digest (self->content));
    self->content_size = zchunk_size (self->content);
}
示例#3
0
文件: qzchunk.cpp 项目: sphaero/czmq
///
//  Calculate SHA1 digest for chunk, using zdigest class.
const QString QZchunk::digest ()
{
    const QString rv = QString (zchunk_digest (self));
    return rv;
}