Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Span<T> and Memory<T> support #23

Open
wants to merge 66 commits into
base: master
Choose a base branch
from
Open

Added Span<T> and Memory<T> support #23

wants to merge 66 commits into from

Conversation

Crypt32
Copy link
Collaborator

@Crypt32 Crypt32 commented Feb 28, 2025

  • Updated all methods and constructors that accepted Byte[] to accept ReadOnlySpan<Byte> or ReadOnlyMemory<Byte> (depending on need)
  • Removed long ago obsoleted APIs
  • Obsoleted most properties that returned Byte[]
  • all methods that returned Byte[] have a GetAsMemory() complementary method which returns ReadOnlyMemory<Byte>
  • updated xml-docs
  • other improvements

This release may introduce compilation errors which are easy to address by choosing correct overload.

…pan<Byte> instead of byte array and reduce allocations
…h is 50-80 times faster than previous and consumes upt to 2 times less memory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment