internal int FilterText(TextFilteringContext eContext, SteamId sourceSteamID, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchInputMessage, out string pchOutFilteredText) { IntPtr mempchOutFilteredText = Helpers.TakeMemory(); var returnValue = _FilterText(Self, eContext, sourceSteamID, pchInputMessage, mempchOutFilteredText, (1024 * 32)); pchOutFilteredText = Helpers.MemoryToString(mempchOutFilteredText); return(returnValue); }
private static extern int _FilterText(IntPtr self, TextFilteringContext eContext, SteamId sourceSteamID, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchInputMessage, IntPtr pchOutFilteredText, uint nByteSizeOutFilteredText);