draconware-dev / SpanExtensions.Net

SpanExtensions.Net aims to make ReadOnlySpan<T> and Span<T> more accessible and overall better integrated into the .Net Ecosystem, by providing alternatives for many missing Extension Methods for Span<T>, ranging from string.Split() over Enumerable.Skip() and Enumerable.Take() to an improved ReadOnlySpan<T>.IndexOf().
MIT License
17 stars 5 forks source link
csharp csharp-lib csharp-library dotnet

SpanExtensions

NuGet Badge

About

ReadonlySpan<T> and Span<T> are great Types in C#, but unfortunately working with them can sometimes be sort of a hassle and some use cases seem straight up impossible, even though they are not.

SpanExtensions.Net aims to help developers use ReadonlySpan<T> and Span<T> more productively, efficiently and safely and write overall more performant Programs.

Never again switch back to using string instead of ReadonlySpan<T>, just because the method you seek is not supported.

SpanExtensions.Net provides alternatives for many missing Extension Methods for ReadonlySpan<T> and Span<T>, ranging from string.Split() over Enumerable.Skip() and Enumerable.Take() to an improved ReadOnlySpan<T>.IndexOf().

Methods

The following Extension Methods are contained:

String Methods made available for ReadonlySpan<T> and Span<T>:

Linq Methods made available for ReadonlySpan<T> and Span<T>:

Contributing

Thank you for your interest in contributing to this project - Please see Contributing!

License

Copyright (c) draconware-dev. All rights reserved.

Licensed under the MIT License.