ZeroMemory in .NET?

T

TDC

Pretty much as stated in the subject. Is there any easy way to zero
out a buffer?

All I could think of (aside from re-creating the byte array over and
over again) is pinning the byte array and p/invoking ZeroMemory
(assuming it exists in coredll).

Any thoughts?
Tom
 

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