Force pOutMessageNumber to be a ref

This commit is contained in:
Garry Newman 2020-02-19 09:58:09 +00:00
parent 4be22d7419
commit b9ef56bf41
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;