I want to get data from an IntPtr pointer into a byte array. I can use the following code to do it:
IntPtr intPtr = GetBuff(); byte[] b = new byte[length];
Check out this Code Project page for a solution to working with unmanaged arrays.