
Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
hi,
my problem is that i don't understad if this senteces is OK:
float *vectA; //Some values inside vectA
...
jfloatArray jarr; //After initialize jarr with float class
...
(*env)->SetIntArrayRegion(env, jarr, 0, 100, vectA);
does it work?
Is there any problem passing floats in c to the jfloats in Java?
Should I do any conversion as we do in Strings?
thanks a lot,
Marcelo
Gordon Beaton - 23 Jan 2006 06:57 GMT
> my problem is that i don't understad if this senteces is OK:
Are you having specific problems, or are you just wondering?
> float *vectA; //Some values inside vectA
> ...
[quoted text clipped - 8 lines]
>
> Should I do any conversion as we do in Strings?
If you want to store floats in a float (not Float) array, pass vectA
to SetFloatArrayRegion (*not* SetIntArrayRegion). Note that float is
not, as you imply, a class.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e