public byte[] ReadBytes(IntPtr address, int count) { var buffer = new byte[count]; Marshal.Copy(address, buffer, 0, count); return buffer; }