byte[] data = null;
unsafe
{
int tempLength;
void* tempData ;
data = new byte[tempLength];
using(UnmanagedMemoryStream tempUMS = new UnmanagedMemoryStream(byte*)tempData, tempLength))
{
tempUMS.Read(data, 0, data.Length);
}
}
byte[] data = null;
unsafe
{
int tempLength;
void* tempData ;
data = new byte[tempLength];
using(UnmanagedMemoryStream tempUMS = new UnmanagedMemoryStream(byte*)tempData, tempLength))
{
tempUMS.Read(data, 0, data.Length);
}
}