Beispiel #1
0
 public void Append(BytesSegment next)
 {
     Debug.Assert(Next == null);
     next.First        = First;
     next.Next         = null;
     next.RunningIndex = RunningIndex + Length;
     Next = next;
 }
Beispiel #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;
            }
        }
Beispiel #3
0
 internal static void ReturnOne(BytesSegment item)
 {
     item.First = null;
     item.Next  = null;
     buffers.Free(item);
 }