internal static void AddFrame(NetContext context, ref object holder, IFrame frame) { if (holder == null) { holder = frame; } else { var list = holder as CircularBuffer <IFrame>; if (list == null) { list = context.GetFrameBuffer(); list.Push((IFrame)holder); list.Push(frame); holder = list; } else { list.Push(frame); } } }
internal static void AddFrame(NetContext context, ref object holder, IFrame frame) { if (holder == null) { holder = frame; } else { var list = holder as CircularBuffer<IFrame>; if (list == null) { list = context.GetFrameBuffer(); list.Push((IFrame)holder); list.Push(frame); holder = list; } else { list.Push(frame); } } }