With dotnet/coreclr#16467 we added methods for various Span extension methods that we added to MemoryExtensions(.Fast).cs. These methods are mostly just code duplicates of their string counterparts which call into an Interop function that accepts a pointer instead of a string. We should try to reconcile the diverged code paths to avoid duplication of huge code chunks. Described in this comment: https://github.com/dotnet/coreclr/pull/16467/files#r169709853
cc @ahsonkhan @tarekgh
With dotnet/coreclr#16467 we added methods for various Span extension methods that we added to MemoryExtensions(.Fast).cs. These methods are mostly just code duplicates of their string counterparts which call into an Interop function that accepts a pointer instead of a string. We should try to reconcile the diverged code paths to avoid duplication of huge code chunks. Described in this comment: https://github.com/dotnet/coreclr/pull/16467/files#r169709853
cc @ahsonkhan @tarekgh