StudyGlib/app/src/main/cpp/study/type.c
/* Transform a blob to a G_TYPE_STRING.
 */
Transform a blob to a G_TYPE_STRING.
Transform a blob to a G_TYPE_STRING .
static void
transform_blob_g_string( const GValue *src_value, GValue *dest_value )
{
    void *blob;
    size_t length;
    char buf[256];
    blob = vips_value_get_blob( src_value, &length );
    vips_snprintf( buf, 256, "VIPS_TYPE_BLOB, data = %p, length = %zd",
                   blob, length );
    g_value_set_string( dest_value, buf );
}
static void transform_blob_g_string ( const GValue * src_value , GValue * dest_value ) { void * blob ; size_t length ; char buf [ 256 ] ; blob = vips_value_get_blob ( src_value , & length ) ; vips_snprintf ( buf , 256 , " " , blob , length ) ; g_value_set_string ( dest_value , buf ) ; }
Transform a blob to a G_TYPE_STRING.
Transform a blob to a G_TYPE_STRING .