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