diff --git a/Facepunch.Steamworks/SteamNetworking.cs b/Facepunch.Steamworks/SteamNetworking.cs
index 38d2fe3..05e4c17 100644
--- a/Facepunch.Steamworks/SteamNetworking.cs
+++ b/Facepunch.Steamworks/SteamNetworking.cs
@@ -59,13 +59,22 @@ namespace Steamworks
public static bool CloseP2PSessionWithUser( SteamId user ) => Internal.CloseP2PSessionWithUser( user );
///
- /// Checks if a P2P packet is available to read, and gets the size of the message if there is one.
+ /// Checks if a P2P packet is available to read.
///
public static bool IsP2PPacketAvailable( int channel = 0 )
{
uint _ = 0;
return Internal.IsP2PPacketAvailable( ref _, channel );
}
+
+ ///
+ /// Checks if a P2P packet is available to read, and gets the size of the message if there is one.
+ ///
+ public static bool IsP2PPacketAvailable( out uint msgSize, int channel = 0 )
+ {
+ msgSize = 0;
+ return Internal.IsP2PPacketAvailable( ref msgSize, channel );
+ }
///
/// Reads in a packet that has been sent from another user via SendP2PPacket..