Delegate ReadOnlySpanFunc<T, TParam, TReturn>
A function which computes a result from a ReadOnlySpan<T> and an additional argument.
Declaration
public delegate TReturn ReadOnlySpanFunc<T, in TParam, out TReturn>(ReadOnlySpan<T> span, TParam param)
Type Parameters
Name | Description |
---|---|
T |
The type of elements of the span. |
TParam |
The type of the additional argument. |
TReturn |
The type of the result computed by the function. |
Constructors
ReadOnlySpanFunc(object, IntPtr)
A function which computes a result from a ReadOnlySpan<T> and an additional argument.
Declaration
public ReadOnlySpanFunc(object @object, IntPtr method)
Parameters
Type | Name | Description |
---|---|---|
object |
||
method |
Methods
BeginInvoke(ReadOnlySpan<T>, TParam, AsyncCallback, object)
A function which computes a result from a ReadOnlySpan<T> and an additional argument.
Declaration
public virtual IAsyncResult BeginInvoke(ReadOnlySpan<T> span, TParam param, AsyncCallback callback, object @object)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<T> |
span |
|
TParam |
param |
|
callback |
||
object |
Returns
Type | Description |
---|---|
EndInvoke(IAsyncResult)
A function which computes a result from a ReadOnlySpan<T> and an additional argument.
Declaration
public virtual TReturn EndInvoke(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
result |
Returns
Type | Description |
---|---|
TReturn |
Invoke(ReadOnlySpan<T>, TParam)
A function which computes a result from a ReadOnlySpan<T> and an additional argument.
Declaration
public virtual TReturn Invoke(ReadOnlySpan<T> span, TParam param)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<T> |
span |
|
TParam |
param |
Returns
Type | Description |
---|---|
TReturn |