-
Notifications
You must be signed in to change notification settings - Fork 5k
[API Proposal]: Convert.{From/To}HexString(utf8) #114079
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
Comments
Tagging subscribers to this area: @dotnet/area-system-memory |
For base64 there is That one should cover your utf8 Span needs. |
@Tornhoof Hmm, I have narrow this proposal down to focus on Hex strings. |
I'd like to get hex casing also included. Currently only upper case is supported in |
@huoyaoyuan Wouldn't it already be supported by |
Just realized |
Background and motivation
Recent .NET have introduced APIs like
IUtf8SpanParsable<T>
andIUtf8SpanFormattable
for directly reading and writing UTF-8. #81500It would be beneficial to have similar APIs for Hex string conversions in the
Convert
class as well.API Proposal
API Usage
Alternative Designs
No response
Risks
Users might get confused between the input ReadOnlySpan and the output Span.
The text was updated successfully, but these errors were encountered: