| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | // See the LICENSE file in the project root for more information. |
| | | 4 | | |
| | | 5 | | namespace System.Buffers |
| | | 6 | | { |
| | | 7 | | /// <summary> |
| | | 8 | | /// Represents a linked list of <see cref="ReadOnlyMemory{T}"/> nodes. |
| | | 9 | | /// </summary> |
| | | 10 | | public abstract class ReadOnlySequenceSegment<T> |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// The <see cref="ReadOnlyMemory{T}"/> value for current node. |
| | | 14 | | /// </summary> |
| | | 15 | | public ReadOnlyMemory<T> Memory { get; protected set; } |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// The next node. |
| | | 19 | | /// </summary> |
| | | 20 | | public ReadOnlySequenceSegment<T> Next { get; protected set; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// The sum of node length before current. |
| | | 24 | | /// </summary> |
| | | 25 | | public long RunningIndex { get; protected set; } |
| | | 26 | | } |
| | | 27 | | } |