Original Post
🔒 Locked
C#, IntPtr to array?
Advertisement
Have you tried the raw cast from one type to another, i.e
(byte[])someIntPtrType? I don''t think you''d need unsafe code at all, because everything is already in terms of the managed types. You might need to tweak it a bit, maybe turn IntPtr into a Int32 using ToInt32... I''d just play around with it a bit.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement