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.

64 lines
1.5 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 class ReceiveMessageFromClientOptions
{
/// <summary>
/// Optional value, if non-null then only messages addressed to this specific client will be returned
/// </summary>
public System.IntPtr ClientHandle { get; set; }
/// <summary>
/// The data received
/// </summary>
public byte[] Data { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct ReceiveMessageFromClientOptionsInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_ClientHandle;
private uint m_DataLengthBytes;
private System.IntPtr m_Data;
public System.IntPtr ClientHandle
{
set
{
m_ClientHandle = value;
}
}
public byte[] Data
{
set
{
Helper.TryMarshalSet(ref m_Data, value, out m_DataLengthBytes);
}
}
public void Set(ReceiveMessageFromClientOptions other)
{
if (other != null)
{
m_ApiVersion = AntiCheatServerInterface.ReceivemessagefromclientApiLatest;
ClientHandle = other.ClientHandle;
Data = other.Data;
}
}
public void Set(object other)
{
Set(other as ReceiveMessageFromClientOptions);
}
public void Dispose()
{
Helper.TryMarshalDispose(ref m_ClientHandle);
Helper.TryMarshalDispose(ref m_Data);
}
}
}