-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Memory/ReadOnlyMemory cast/extensions (as Span) #23669
Comments
I think AsBytes is fine. Do we need the NonPortableCast? Such an ugly name. cc: @jkotas, @ahsonkhan |
To convert from Bytes to something else? |
What does the implementation of |
Would need to allocate an indirection So probably worse getting a Span from the Memory, converting the Span and copying to a pooled array and using that |
Yeah isn't going to work as can't put a reference of general "TFrom" in |
Parallel the
Span<T>
cast extensions forMemory<T>
e.g.
i.e
/cc @KrzysztofCwalina @stephentoub @davidfowl
The text was updated successfully, but these errors were encountered: