Direct Memorry Accessing?

BlitzMax Forums/BlitzMax Programming/Direct Memorry Accessing?

@AngieldDaniel
Wise words. I remember the Amiga, I has a 1200. Really flash machine for its time. I ended up with an '040 processor in there and 32meg of RAM!!! and an 8! Gig hard drive. That was considered quite excessive back then!

I have played around with the memory pointers and de-referecing the pointers with [0]. I created a type that was a copy of a file header structure ( contained only int's and byte's, no other types or arrays ) and also created an array of bytes. I loaded the file into the array and used 'memcopy' to copy the file header information straight into the 'Type'. Worked rather well and was only about 5 lines of code, instead of reading each bit of data and transfering that data into the type fields.
This technique doesn't work if you have arrays or other 'Types' within your 'Type'.