public int Deserialize(byte[] ropBytes, int startIndex)
{
IntPtr responseBuffer = new IntPtr();
responseBuffer = Marshal.AllocHGlobal(Marshal.SizeOf(this));
try
{
Marshal.Copy(ropBytes, startIndex, responseBuffer, Marshal.SizeOf(this));
this = (RopGetRulesTableResponse)Marshal.PtrToStructure(responseBuffer, typeof(RopGetRulesTableResponse));
return Marshal.SizeOf(this);
}
finally
{
Marshal.FreeHGlobal(responseBuffer);
}
}
}