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.
66 lines
1.9 KiB
66 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.P2P
|
|
{
|
|
/// <summary>
|
|
/// Structure containing information about new packet queue size settings.
|
|
/// </summary>
|
|
public struct SetPacketQueueSizeOptions
|
|
{
|
|
/// <summary>
|
|
/// The ideal maximum amount of bytes the Incoming packet queue can consume
|
|
/// </summary>
|
|
public ulong IncomingPacketQueueMaxSizeBytes { get; set; }
|
|
|
|
/// <summary>
|
|
/// The ideal maximum amount of bytes the Outgoing packet queue can consume
|
|
/// </summary>
|
|
public ulong OutgoingPacketQueueMaxSizeBytes { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct SetPacketQueueSizeOptionsInternal : ISettable<SetPacketQueueSizeOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private ulong m_IncomingPacketQueueMaxSizeBytes;
|
|
private ulong m_OutgoingPacketQueueMaxSizeBytes;
|
|
|
|
public ulong IncomingPacketQueueMaxSizeBytes
|
|
{
|
|
set
|
|
{
|
|
m_IncomingPacketQueueMaxSizeBytes = value;
|
|
}
|
|
}
|
|
|
|
public ulong OutgoingPacketQueueMaxSizeBytes
|
|
{
|
|
set
|
|
{
|
|
m_OutgoingPacketQueueMaxSizeBytes = value;
|
|
}
|
|
}
|
|
|
|
public void Set(ref SetPacketQueueSizeOptions other)
|
|
{
|
|
m_ApiVersion = P2PInterface.SetpacketqueuesizeApiLatest;
|
|
IncomingPacketQueueMaxSizeBytes = other.IncomingPacketQueueMaxSizeBytes;
|
|
OutgoingPacketQueueMaxSizeBytes = other.OutgoingPacketQueueMaxSizeBytes;
|
|
}
|
|
|
|
public void Set(ref SetPacketQueueSizeOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = P2PInterface.SetpacketqueuesizeApiLatest;
|
|
IncomingPacketQueueMaxSizeBytes = other.Value.IncomingPacketQueueMaxSizeBytes;
|
|
OutgoingPacketQueueMaxSizeBytes = other.Value.OutgoingPacketQueueMaxSizeBytes;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
}
|
|
}
|