Posted: Tue Nov 18, 2014 4:00 pm Post subject: Noncontiguous array of byte?
If i have an area in memory that looks like:
01 02 03 04 FF 05 06 07 08
and i want the user to be able to edit it as an array as if it were
01 02 03 04 05 06 07 08
then the only way i can think of accomplishing this is by mirroring the data in the correct layout and synching it. Is there an easier way? Like for example a noncontiguous array of byte type, or similar?
Thanks, but I don't want to change the structure in memory. Instead i want to make a view of the data that looks like the second sample but edits the original data in the first example.
I was just hoping that there was a simpler method than copying data around on every frame.
I really dont understand what you ask. If you wanna edit the array you have to do it. You cant make it "LOOK" like another array. Arrays are memory spaces. Even if you make it look like another array you are still changing it.
If possible post a better example so i can understand it. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum