Beispiel #1
0
        bool IPacket.TryGetBuffers(out System.Collections.Generic.IList <System.ArraySegment <byte> > buffer)
        {
            if (IsHolding)
            {
                return(Holding.TryGetBuffers(out buffer));
            }

            if (IsDisposed)
            {
                buffer = default(System.Collections.Generic.IList <System.ArraySegment <byte> >);

                return(false);
            }

            buffer = new System.Collections.Generic.List <System.ArraySegment <byte> >()
            {
                new System.ArraySegment <byte>(m_OwnedOctets)
            };

            return(true);
        }