public void SendMessageToServer(int protocol, byte[] data) { IntPtr ptr = UtilsHelper.BytesToIntPtr(data); _GameDef.sendMessage(protocol, ptr, data.Length); }