I have 2 classes as follows :
class JavaClass
{
public static native void changeArrayContents(Object obj);
static
{
System.loadLibrary ("DLL_FILE_NAME");
}
public static void main (
String[] args)
{
TestClass test_class = new TestClass ();
JavaClass.changeArrayContents (test_class);
}
}
class TestClass
{
byte[] byteArr = new byte[3];
TestClass ()
{
byteArr[0] = 1;
byteArr[1] = 2;
byteArr[2] = 3;
}
}
Then what could be the native code (in c languages) that will mopdify contents of test_class.byteArr.
------------------