Ejemplo n.º 1
0
 public void Append(BytesSegment next)
 {
     Debug.Assert(Next == null);
     next.First        = First;
     next.Next         = null;
     next.RunningIndex = RunningIndex + Length;
     Next = next;
 }
Ejemplo n.º 2
0
        internal static void ReturnAll(BytesSegment item)
        {
            var current = item.First;
            ReadOnlySequenceSegment <byte> next;

            while (current != null)
            {
                next = current.Next;
                ReturnOne(current);
                current = (BytesSegment)next;
            }
        }
Ejemplo n.º 3
0
 internal static void ReturnOne(BytesSegment item)
 {
     item.First = null;
     item.Next  = null;
     buffers.Free(item);
 }