start to extract android dependency

This commit is contained in:
Hannes Janetzek
2013-08-05 00:06:35 +02:00
parent 58942dbf59
commit 10425ff232
101 changed files with 4692 additions and 1070 deletions

View File

@@ -80,6 +80,10 @@ jlong JNI(alloc)(JNIEnv *env, jclass* clazz)
return (long) calloc(16, sizeof(float));
}
jobject JNI(getBuffer)(JNIEnv *env, jclass* clazz,jlong ptr){
return (*env)->NewDirectByteBuffer(env,(char*)(uintptr_t)ptr, 16*sizeof(float));
}
void JNI(delete)(JNIEnv* env, jclass* clazz, jlong ptr)
{
free(CAST(ptr));