// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.AntiCheatServer
{
public class UnprotectMessageOptions
{
///
/// Locally unique value describing the remote user from whom the message was received
///
public System.IntPtr ClientHandle { get; set; }
///
/// The data to decrypt
///
public byte[] Data { get; set; }
///
/// The size in bytes of OutBuffer
///
public uint OutBufferSizeBytes { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct UnprotectMessageOptionsInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_ClientHandle;
private uint m_DataLengthBytes;
private System.IntPtr m_Data;
private uint m_OutBufferSizeBytes;
public System.IntPtr ClientHandle
{
set
{
m_ClientHandle = value;
}
}
public byte[] Data
{
set
{
Helper.TryMarshalSet(ref m_Data, value, out m_DataLengthBytes);
}
}
public uint OutBufferSizeBytes
{
set
{
m_OutBufferSizeBytes = value;
}
}
public void Set(UnprotectMessageOptions other)
{
if (other != null)
{
m_ApiVersion = AntiCheatServerInterface.UnprotectmessageApiLatest;
ClientHandle = other.ClientHandle;
Data = other.Data;
OutBufferSizeBytes = other.OutBufferSizeBytes;
}
}
public void Set(object other)
{
Set(other as UnprotectMessageOptions);
}
public void Dispose()
{
Helper.TryMarshalDispose(ref m_ClientHandle);
Helper.TryMarshalDispose(ref m_Data);
}
}
}