J
Jorge Castillo
Hello.
Does anybody knows a way to get similar results on CompactFramework
byte[] buffer;
int bufferOffset = 0;
GCHandle bufferHandle;
IntPtr bufferPtr;
..
..
..
bufferHandle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
bufferPtr = Marshal.UnsafeAddrOfPinnedArrayElement(buffer, bufferOffset);
8<----------8<----------8<----------8<----------8<----------
I need to get bufferPtr to use in a C dll (void * buffer)
Thanks in advance,
Jorge Castillo
Does anybody knows a way to get similar results on CompactFramework
byte[] buffer;
int bufferOffset = 0;
GCHandle bufferHandle;
IntPtr bufferPtr;
..
..
..
bufferHandle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
bufferPtr = Marshal.UnsafeAddrOfPinnedArrayElement(buffer, bufferOffset);
8<----------8<----------8<----------8<----------8<----------
I need to get bufferPtr to use in a C dll (void * buffer)
Thanks in advance,
Jorge Castillo