Class ReadOnlySpanFunc<T, TParam, TReturn>
A function which computes a result from a ReadOnlySpan<T> and an additional argument.
Inheritance
- Object
- ReadOnlySpanFunc<T, TParam, TReturn>
Declaration
public sealed class ReadOnlySpanFunc<T, in TParam, out TReturn> : MulticastDelegate
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)
Declaration
public ReadOnlySpanFunc(object object, IntPtr method)
Parameters
Type | Name | Description |
---|---|---|
object |
||
method |
Methods
BeginInvoke(ReadOnlySpan<T>, TParam, AsyncCallback, Object)
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)
Declaration
public virtual TReturn EndInvoke(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
result |
Returns
Type | Description |
---|---|
TReturn |
Invoke(ReadOnlySpan<T>, TParam)
Declaration
public virtual TReturn Invoke(ReadOnlySpan<T> span, TParam param)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<T> |
span |
|
TParam |
param |
Returns
Type | Description |
---|---|
TReturn |