Using Span for high performance interop with unmanaged libraries