// 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 the packet queue's state and the incoming packet that would overflow the queue /// public class OnIncomingPacketQueueFullInfo : ICallbackInfo, ISettable { /// /// Client-specified data passed into AddNotifyIncomingPacketQueueFull /// public object ClientData { get; private set; } /// /// The maximum size in bytes the incoming packet queue is allowed to use /// public ulong PacketQueueMaxSizeBytes { get; private set; } /// /// The current size in bytes the incoming packet queue is currently using /// public ulong PacketQueueCurrentSizeBytes { get; private set; } /// /// The Product User ID of the local user who is receiving the packet that would overflow the queue /// public ProductUserId OverflowPacketLocalUserId { get; private set; } /// /// The channel the incoming packet is for /// public byte OverflowPacketChannel { get; private set; } /// /// The size in bytes of the incoming packet (and related metadata) that would overflow the queue /// 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; } } } }