System::Buffers::ReadOnlySequenceSegment class

ReadOnlySequenceSegment class

Represents a linked-list node that holds a single contiguous memory segment participating in a multi-segment ReadOnlySequence.

template<typename T>class ReadOnlySequenceSegment : public System::Object
ParameterDescription
TThe type of elements held by the segment.

Methods

MethodDescription
get_Memory() constGets the contiguous memory held by this segment.
get_Next() constGets the next segment in the sequence.
get_RunningIndex() constGets the index of the first element of this segment within the overall sequence.
ReadOnlySequenceSegment()Constructs an empty segment.
explicit ReadOnlySequenceSegment(const ReadOnlyMemory<T>&)Constructs a segment wrapping the given memory block.
set_Memory(const ReadOnlyMemory<T>&)Sets the contiguous memory held by this segment.
set_Next(const SharedPtr<ReadOnlySequenceSegment<T>>&)Sets the next segment in the sequence.
set_RunningIndex(int64_t)Sets the index of the first element of this segment within the overall sequence.

See Also