DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.15.0" />

 DelegatingReadOnlySpanConsumer<T, TArg>

Represents implementation of IReadOnlySpanConsumer<T> that delegates invocation to the delegate of type ReadOnlySpanAction<T, U>.
public bool IsEmpty { get; }

Gets a value indicating that the underlying delegate is null.

public DelegatingReadOnlySpanConsumer(ReadOnlySpanAction<T, TArg> action, TArg arg)

Wraps the delegate instance.