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

Add GetPooledArraySpan(...) extension method #10625

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

DustinCampbell
Copy link
Member

This change adds a new GetPooledArraySpan(...) extension method that returns a pooled array as a Span<T> with the expected length. This can help avoid bugs that can occur if a pooled array's Length is accidental used.

This change adds a new `GetPooledArraySpan(...)` extension method that returns a pooled array as a `Span<T>` with the expected length. This can help avoid bugs that can occur if a pooled array's `Length` is accidental used.
@DustinCampbell DustinCampbell requested review from a team as code owners July 16, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants