Delegate ReadOnlySpanFunc<T, TArg, TResult>
Represents ReadOnlySpanAction<T, TArg> counterpart with return value.
Namespace: DotNext.Buffers
Assembly: DotNext.IO.dll
Syntax
public delegate TResult ReadOnlySpanFunc<T, TArg, TResult>(ReadOnlySpan<T> span, TArg arg)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<T> | span | A read-only span of objects. |
TArg | arg | A state object. |
Returns
Type | Description |
---|---|
TResult | The value returned by the delegate. |
Type Parameters
Name | Description |
---|---|
T | The type of the objects in the read-only span. |
TArg | The type of the object that represents the state. |
TResult | The type of return value. |