mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
Force pOutMessageNumber to be a ref
This commit is contained in:
parent
4be22d7419
commit
b9ef56bf41
@ -145,12 +145,12 @@ internal bool GetConnectionName( Connection hPeer, out string pszName )
|
||||
|
||||
#region FunctionMeta
|
||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SendMessageToConnection")]
|
||||
private static extern Result _SendMessageToConnection( IntPtr self, Connection hConn, IntPtr pData, uint cbData, int nSendFlags, [In,Out] long[] pOutMessageNumber );
|
||||
private static extern Result _SendMessageToConnection( IntPtr self, Connection hConn, IntPtr pData, uint cbData, int nSendFlags, ref long pOutMessageNumber );
|
||||
|
||||
#endregion
|
||||
internal Result SendMessageToConnection( Connection hConn, IntPtr pData, uint cbData, int nSendFlags, [In,Out] long[] pOutMessageNumber )
|
||||
internal Result SendMessageToConnection( Connection hConn, IntPtr pData, uint cbData, int nSendFlags, ref long pOutMessageNumber )
|
||||
{
|
||||
var returnValue = _SendMessageToConnection( Self, hConn, pData, cbData, nSendFlags, pOutMessageNumber );
|
||||
var returnValue = _SendMessageToConnection( Self, hConn, pData, cbData, nSendFlags, ref pOutMessageNumber );
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
|
@ -86,6 +86,7 @@ public virtual bool IsVector
|
||||
{
|
||||
if ( Func == "ReadP2PPacket" ) return false;
|
||||
if ( Func == "SendP2PPacket" ) return false;
|
||||
if ( VarName == "pOutMessageNumber" ) return false;
|
||||
|
||||
if ( VarName == "pOut" ) return false;
|
||||
if ( VarName == "pOutBuffer" ) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user