Steamworks.SteamMatchmaking.GetLobbyDataByIndex C# (CSharp) Méthode

GetLobbyDataByIndex() public static méthode

returns a lobby metadata key/values pair by index, of range [0, GetLobbyDataCount())

public static GetLobbyDataByIndex ( CSteamID steamIDLobby, int iLobbyData, string &pchKey, int cchKeyBufferSize, string &pchValue, int cchValueBufferSize ) : bool
steamIDLobby CSteamID
iLobbyData int
pchKey string
cchKeyBufferSize int
pchValue string
cchValueBufferSize int
Résultat bool
		public static bool GetLobbyDataByIndex(CSteamID steamIDLobby, int iLobbyData, out string pchKey, int cchKeyBufferSize, out string pchValue, int cchValueBufferSize) {
			InteropHelp.TestIfAvailableClient();
			IntPtr pchKey2 = Marshal.AllocHGlobal(cchKeyBufferSize);
			IntPtr pchValue2 = Marshal.AllocHGlobal(cchValueBufferSize);
			bool ret = NativeMethods.ISteamMatchmaking_GetLobbyDataByIndex(steamIDLobby, iLobbyData, pchKey2, cchKeyBufferSize, pchValue2, cchValueBufferSize);
			pchKey = ret ? InteropHelp.PtrToStringUTF8(pchKey2) : null;
			Marshal.FreeHGlobal(pchKey2);
			pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null;
			Marshal.FreeHGlobal(pchValue2);
			return ret;
		}