hello
I wonder if there is any possibility to create IntPtr type to point to bytes array? I tried Marshal.Copy() but mem address was changing all the time. I have code like this :
of course it doesn't work :) but that code show what im trying to do. Can anyone tell me what should I do?
I wonder if there is any possibility to create IntPtr type to point to bytes array? I tried Marshal.Copy() but mem address was changing all the time. I have code like this :
Code:
Random rnd = new Random();
data = new Byte[100];
rnd.NextBytes(data);
unsafe
{
fixed( byte* wsk = data)
{
IntPtr unmanagedPointer = wsk;
}
}
Comment