Esempio n. 1
0
        public static void Output(IntPtr bytes, int count, IntPtr user)
        {
            if (Instance == null)
            {
                return;
            }
            AChannel aChannel = Instance.GetChannel((uint)user);

            if (aChannel == null)
            {
                Debug.LogError($"not found kchannel, {(uint)user}");
            }

            KChannel kChannel = aChannel as KChannel;

            kChannel.Output(bytes, count);
        }
Esempio n. 2
0
        public /*static*/ void Output(IntPtr bytes, int count, IntPtr user)
        {
            //if (Instance == null)
            //{
            //	return;
            //}
            AChannel aChannel = /*Instance.*/ GetChannel((uint)user);

            if (aChannel == null)
            {
                Log.Error($"not found kchannel, {(uint)user}");
                return;
            }

            KChannel kChannel = aChannel as KChannel;

            kChannel.Output(bytes, count);
        }