unmanaged arrays... how to?

T

ThunderMusic

Hi,
I need to use unmanaged arrays but I don't know how to use them.

How do I initialize it? I've seen Marshal.AllocHGlobal(int). is it the right
way of doing it?

How do I write in it? do I have to use Marshal.WriteByte and write what I
have to write byte by byte (what I need is an array of bytes). There must be
an easier way of doing it?

Thanks

ThunderMusic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top