G
Guest
Hi,
In my project I need to use VirtualAlloc (kernel32) to allocate memory to
ensure that data is 4K aligned. I need to fill the data block with file
contents. I notice that there are no 'Read' operations to memory pointed to
be an IntPtr (I checked FileStream & BinaryReader). Can I do this from
C#/.NET?
I'm currently mapping C-functions to achieve this, and I'm not too fond of
doing that. Can someone help me with this?
Thanks
In my project I need to use VirtualAlloc (kernel32) to allocate memory to
ensure that data is 4K aligned. I need to fill the data block with file
contents. I notice that there are no 'Read' operations to memory pointed to
be an IntPtr (I checked FileStream & BinaryReader). Can I do this from
C#/.NET?
I'm currently mapping C-functions to achieve this, and I'm not too fond of
doing that. Can someone help me with this?
Thanks