Show / Hide Table of Contents

Class ReadOnlySequencePartitioner

Represents factory of Partitioner<TSource> objects for ReadOnlySequence<T>.

Inheritance
object
ReadOnlySequencePartitioner
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotNext.Buffers
Assembly: DotNext.dll
Syntax
public static class ReadOnlySequencePartitioner

Methods

| Edit this page View Source

CreatePartitioner<T>(in ReadOnlySequence<T>, bool)

Creates partitioner for the sequence of elements.

Declaration
public static OrderablePartitioner<T> CreatePartitioner<T>(this in ReadOnlySequence<T> sequence, bool splitOnSegments = false)
Parameters
Type Name Description
ReadOnlySequence<T> sequence

The sequence of elements.

bool splitOnSegments

true to split the sequence to the number of partitions equals to the number of the segments within the sequence; false to split the sequence dynamically to balance the workload.

Returns
Type Description
OrderablePartitioner<T>

The partitioner for the sequence.

Type Parameters
Name Description
T

The type of the elements in the sequence.

  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾