You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
1.9 KiB
82 lines
1.9 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.AntiCheatServer
|
|
{
|
|
public struct UnprotectMessageOptions
|
|
{
|
|
/// <summary>
|
|
/// Locally unique value describing the remote user from whom the message was received
|
|
/// </summary>
|
|
public System.IntPtr ClientHandle { get; set; }
|
|
|
|
/// <summary>
|
|
/// The data to decrypt
|
|
/// </summary>
|
|
public System.ArraySegment<byte> Data { get; set; }
|
|
|
|
/// <summary>
|
|
/// The size in bytes of OutBuffer
|
|
/// </summary>
|
|
public uint OutBufferSizeBytes { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct UnprotectMessageOptionsInternal : ISettable<UnprotectMessageOptions>, 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 System.ArraySegment<byte> Data
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_Data, out m_DataLengthBytes);
|
|
}
|
|
}
|
|
|
|
public uint OutBufferSizeBytes
|
|
{
|
|
set
|
|
{
|
|
m_OutBufferSizeBytes = value;
|
|
}
|
|
}
|
|
|
|
public void Set(ref UnprotectMessageOptions other)
|
|
{
|
|
m_ApiVersion = AntiCheatServerInterface.UnprotectmessageApiLatest;
|
|
ClientHandle = other.ClientHandle;
|
|
Data = other.Data;
|
|
OutBufferSizeBytes = other.OutBufferSizeBytes;
|
|
}
|
|
|
|
public void Set(ref UnprotectMessageOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = AntiCheatServerInterface.UnprotectmessageApiLatest;
|
|
ClientHandle = other.Value.ClientHandle;
|
|
Data = other.Value.Data;
|
|
OutBufferSizeBytes = other.Value.OutBufferSizeBytes;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_ClientHandle);
|
|
Helper.Dispose(ref m_Data);
|
|
}
|
|
}
|
|
}
|