//Auto-generated by kalyptus. DO NOT EDIT.
#include <qasyncimageio.h>
#include <qimage.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QImageFormat.h>

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImageFormat_decode(JNIEnv* env, jobject obj, jobject img, jobject consumer, jcharArray buffer, jint length)
{
static QByteArray* _qbytearray_buffer = 0;
	jint xret = (jint) ((QImageFormat*) QtSupport::getQt(env, obj))->decode((QImage&)*(QImage*) QtSupport::getQt(env, img), (QImageConsumer*) QtSupport::getQt(env, consumer), (const uchar*) QtSupport::toUcharArray(env, buffer, &_qbytearray_buffer), (int) length);
	return xret;
}

