I have in C ++
memcpy (&wkpm, (PMSK *)pr_masks + (long)(x - 1), sizeof(PMSK));
where PMSKis the structure. This will be a class in Java.
Now, assuming that here I am copying the entire piece of memory into pr_masks, creating an additional instance of the class PMSK. How to do it in Java.
Example. In java code on line 20, I want to grab an instance of the class, and then use the same instance again on line 100. There can be many changes between them.
Hope I understood my question.
thank
source
share