Converting IntPtr to byte[]

  • Thread starter Thread starter Brian Harleton
  • Start date Start date
B

Brian Harleton

Can anyone help in converting an IntPtr to a byte[]?
It's not obvious to me how to do that. It seems maybe
that the Marshal.PtrToStructure() method is the way to
go, but I've been having trouble getting that to do what
I want. Any help is appreciated
 
Brian,
Can anyone help in converting an IntPtr to a byte[]?
It's not obvious to me how to do that. It seems maybe
that the Marshal.PtrToStructure() method is the way to
go, but I've been having trouble getting that to do what
I want.

Try Marshal.Copy instead.



Mattias
 
Back
Top