I have in C++
memcpy (&wkpm, (PMSK *)pr_masks + (long)(x - 1), sizeof(PMSK));
where PMSK
is a struct. It will be a class in Java.
Now assuming that here I am copying the whole chunk of memory into pr_masks i.e creating an additional instance of the PMSK
class.
How to do this in Java.
Example: In a java code at line 20 I want capture the class instance and then again use that same instance in line 100. In between there may be many modifications.
Hope I am clear with my question.
Thanks