Constructors
-
Read
Only Creates an instance of ReadOnlySequence`1 from a ReadOnlyMemory`1.Sequence`1(Read Only Memory<`0>) -
Read
Only Creates an instance of a ReadOnlySequence`1 from a linked memory list represented by start and end segments and the corresponding indexes in them.Sequence`1(Read Only Sequence Segment<`0>, Int32, Read Only Sequence Segment<`0>, Int32) -
Read
Only Creates an instance of ReadOnlySequence`1 from the array.Sequence`1(`0[]) -
Read
Only Creates an instance of a ReadOnlySequence`1 from a section of an array.Sequence`1(`0[], Int32, Int32)
Methods
-
Get
Enumerator() Returns an enumerator over the ReadOnlySequence`1. -
Get
Position(Int64) Returns a new SequencePosition at an offset from the start of the sequence. -
Get
Position(Int64, Returns a new SequencePosition at an offset from the origin.Sequence Position) -
Slice(Int32,
Int32) Forms a slice out of the current ReadOnlySequence`1, beginning at start, with length items. -
Slice(Int32,
Sequence Forms a slice out of the current ReadOnlySequence`1, beginning at start and ending at end (exclusive).Position) - Slice(Int64) Forms a slice out of the current ReadOnlySequence`1, beginning at a specified index and continuing to the end of the read-only sequence.
-
Slice(Int64,
Int64) Forms a slice out of the given ReadOnlySequence`1, beginning at start, with length items. -
Slice(Int64,
Sequence Forms a slice out of the current ReadOnlySequence`1, beginning at start and ending at end (exclusive).Position) -
Slice(Sequence
Position) Forms a slice out of the current ReadOnlySequence`1, beginning at a specified sequence position and continuing to the end of the read-only sequence. -
Slice(Sequence
Position, Forms a slice out of the current ReadOnlySequence`1, beginning at start, with length items.Int32) -
Slice(Sequence
Position, Forms a slice out of the current ReadOnlySequence`1, beginning at start, with length items.Int64) -
Slice(Sequence
Position, Forms a slice out of the current ReadOnlySequence`1, beginning at start and ending at end (exclusive).Sequence Position) -
To
String() -
Try
Get(Sequence Tries to retrieve the next segment after position and returns a value that indicates whether the operation succeeded.Position&, Read Only Memory<`0>&, Boolean)
Fields
- Empty Returns an empty ReadOnlySequence`1
Properties
- End Gets the position at the end of the ReadOnlySequence`1.
- First Gets the ReadOnlyMemory`1 from the first segment.
-
First
Span Gets the ReadOnlySpan`1 from the first segment. -
Is
Empty Gets a value that indicates whether the ReadOnlySequence`1 is empty. -
Is
Single Gets a value that indicates whether the ReadOnlySequence`1 contains a single ReadOnlyMemory`1 segment.Segment - Length Gets the length of the ReadOnlySequence`1.
- Start Gets the position to the start of the ReadOnlySequence`1.