FixedSizeBuffers

Class SpanFunc<T, R>

A function which receives a Span<T> and an additional state object.

Inheritance
Declaration
public sealed class SpanFunc<T, R> : MulticastDelegate
Type Parameters
Name Description

T

The type of objects in the span

R

The type of the function's return value

Constructors

SpanFunc(Object, IntPtr)

Declaration
public SpanFunc(object object, IntPtr method)
Parameters
Type Name Description

Object

object

IntPtr

method

Methods

BeginInvoke(Span<T>, AsyncCallback, Object)

Declaration
public virtual IAsyncResult BeginInvoke(Span<T> span, AsyncCallback callback, object object)
Parameters
Type Name Description

Span<T>

span

AsyncCallback

callback

Object

object

Returns
Type Description

IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public virtual R EndInvoke(IAsyncResult result)
Parameters
Type Name Description

IAsyncResult

result

Returns
Type Description

R

Invoke(Span<T>)

Declaration
public virtual R Invoke(Span<T> span)
Parameters
Type Name Description

Span<T>

span

Returns
Type Description

R