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.
135 lines
3.3 KiB
135 lines
3.3 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.P2P
|
|
{
|
|
/// <summary>
|
|
/// Structure containing information about the packet queue's state and the incoming packet that would overflow the queue
|
|
/// </summary>
|
|
public class OnIncomingPacketQueueFullInfo : ICallbackInfo, ISettable
|
|
{
|
|
/// <summary>
|
|
/// Client-specified data passed into AddNotifyIncomingPacketQueueFull
|
|
/// </summary>
|
|
public object ClientData { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The maximum size in bytes the incoming packet queue is allowed to use
|
|
/// </summary>
|
|
public ulong PacketQueueMaxSizeBytes { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The current size in bytes the incoming packet queue is currently using
|
|
/// </summary>
|
|
public ulong PacketQueueCurrentSizeBytes { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The Product User ID of the local user who is receiving the packet that would overflow the queue
|
|
/// </summary>
|
|
public ProductUserId OverflowPacketLocalUserId { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The channel the incoming packet is for
|
|
/// </summary>
|
|
public byte OverflowPacketChannel { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The size in bytes of the incoming packet (and related metadata) that would overflow the queue
|
|
/// </summary>
|
|
public uint OverflowPacketSizeBytes { get; private set; }
|
|
|
|
public Result? GetResultCode()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
internal void Set(OnIncomingPacketQueueFullInfoInternal? other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
ClientData = other.Value.ClientData;
|
|
PacketQueueMaxSizeBytes = other.Value.PacketQueueMaxSizeBytes;
|
|
PacketQueueCurrentSizeBytes = other.Value.PacketQueueCurrentSizeBytes;
|
|
OverflowPacketLocalUserId = other.Value.OverflowPacketLocalUserId;
|
|
OverflowPacketChannel = other.Value.OverflowPacketChannel;
|
|
OverflowPacketSizeBytes = other.Value.OverflowPacketSizeBytes;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as OnIncomingPacketQueueFullInfoInternal?);
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct OnIncomingPacketQueueFullInfoInternal : ICallbackInfoInternal
|
|
{
|
|
private System.IntPtr m_ClientData;
|
|
private ulong m_PacketQueueMaxSizeBytes;
|
|
private ulong m_PacketQueueCurrentSizeBytes;
|
|
private System.IntPtr m_OverflowPacketLocalUserId;
|
|
private byte m_OverflowPacketChannel;
|
|
private uint m_OverflowPacketSizeBytes;
|
|
|
|
public object ClientData
|
|
{
|
|
get
|
|
{
|
|
object value;
|
|
Helper.TryMarshalGet(m_ClientData, out value);
|
|
return value;
|
|
}
|
|
}
|
|
|
|
public System.IntPtr ClientDataAddress
|
|
{
|
|
get
|
|
{
|
|
return m_ClientData;
|
|
}
|
|
}
|
|
|
|
public ulong PacketQueueMaxSizeBytes
|
|
{
|
|
get
|
|
{
|
|
return m_PacketQueueMaxSizeBytes;
|
|
}
|
|
}
|
|
|
|
public ulong PacketQueueCurrentSizeBytes
|
|
{
|
|
get
|
|
{
|
|
return m_PacketQueueCurrentSizeBytes;
|
|
}
|
|
}
|
|
|
|
public ProductUserId OverflowPacketLocalUserId
|
|
{
|
|
get
|
|
{
|
|
ProductUserId value;
|
|
Helper.TryMarshalGet(m_OverflowPacketLocalUserId, out value);
|
|
return value;
|
|
}
|
|
}
|
|
|
|
public byte OverflowPacketChannel
|
|
{
|
|
get
|
|
{
|
|
return m_OverflowPacketChannel;
|
|
}
|
|
}
|
|
|
|
public uint OverflowPacketSizeBytes
|
|
{
|
|
get
|
|
{
|
|
return m_OverflowPacketSizeBytes;
|
|
}
|
|
}
|
|
}
|
|
}
|