As of .NET 9, it is now possible to pass Spans using the new allows ref struct generic constraint. However, this feature required changes in the language, SDK and runtime, so it won't be available with older .NET verswions.