static private GetBytesPtr ( byte ptr, int count ) : byte[] | ||
ptr | byte | |
count | int | |
return | byte[] |
unsafe static byte[] GetBytesPtr (byte *ptr, int count)
{
byte [] ret = new byte [count];
for (int i = 0; i < count; i++) {
ret [i] = ptr [i];
}
return ret;
}