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