I have an IntPtr (c#) given from unmanaged code. I know that this is an reference to an Byte Array with 4096 elements.
Now i want to CONVERT these data from IntPtr to Byte[] WITHOUT Marshal.Copy. Because the memory in kernel space is already allocated. I only want to interprete those data as an byte array.
I know that there a function "InteropUtils.ConvertIntPtrToByteArray-Methode" but it is only available for smart Devices etc.
Maybe somebody had an better idea?