byte[] buffer = new byte[500000];
初始化缓冲区0值。由于这是一个缓冲区,我不想任何初始化,是否有可能在C#与C?
initializes buffer with 0 values. As it is a buffer, I dont want any initialization, is it possible in C# as in C?
用随机数字填充它,或者使用的DllImport
和虚拟
从Win32 API的。
Fill it with random numbers or use DllImport
and VirtualAlloc
from Win32 API.