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.4 KiB
64 lines
1.4 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.AntiCheatClient
|
|
{
|
|
public class ReceiveMessageFromPeerOptions
|
|
{
|
|
/// <summary>
|
|
/// The handle describing the sender of this message
|
|
/// </summary>
|
|
public System.IntPtr PeerHandle { 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 ReceiveMessageFromPeerOptionsInternal : ISettable, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_PeerHandle;
|
|
private uint m_DataLengthBytes;
|
|
private System.IntPtr m_Data;
|
|
|
|
public System.IntPtr PeerHandle
|
|
{
|
|
set
|
|
{
|
|
m_PeerHandle = value;
|
|
}
|
|
}
|
|
|
|
public byte[] Data
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_Data, value, out m_DataLengthBytes);
|
|
}
|
|
}
|
|
|
|
public void Set(ReceiveMessageFromPeerOptions other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
m_ApiVersion = AntiCheatClientInterface.ReceivemessagefrompeerApiLatest;
|
|
PeerHandle = other.PeerHandle;
|
|
Data = other.Data;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as ReceiveMessageFromPeerOptions);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.TryMarshalDispose(ref m_PeerHandle);
|
|
Helper.TryMarshalDispose(ref m_Data);
|
|
}
|
|
}
|
|
}
|