// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.P2P { /// /// Structure containing information about new packet queue size settings. /// public struct SetPacketQueueSizeOptions { /// /// The ideal maximum amount of bytes the Incoming packet queue can consume /// public ulong IncomingPacketQueueMaxSizeBytes { get; set; } /// /// The ideal maximum amount of bytes the Outgoing packet queue can consume /// public ulong OutgoingPacketQueueMaxSizeBytes { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct SetPacketQueueSizeOptionsInternal : ISettable, 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() { } } }