File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/libraries/Microsoft.Bcl.Memory/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ byte[] data = Encoding.UTF8.GetBytes("Hello World!");
43
43
Span < byte > encoded = new byte [Base64Url .GetEncodedLength (data .Length )];
44
44
Base64Url .EncodeToUtf8 (data , encoded , out int _ , out int bytesWritten );
45
45
46
- string encodedString = Encoding . UTF8 . GetString ( encoded [ .. bytesWritten ]);
46
+ string encodedString = Base64Url . EncodeToString ( data );
47
47
Console .WriteLine ($" Encoded: {encodedString }" );
48
48
// Encoded: SGVsbG8gV29ybGQh
49
49
@@ -72,8 +72,8 @@ The main types provided by this library are:
72
72
API documentation
73
73
74
74
* [ System.Index] ( https://learn.microsoft.com/dotnet/api/system.index )
75
- * [ System.Range] ( https://learn.microsoft.com/en-us/ dotnet/api/system.range )
76
- * [ System.Buffers.Text] ( https://learn.microsoft.com/dotnet/api/system.buffers.text )
75
+ * [ System.Range] ( https://learn.microsoft.com/dotnet/api/system.range )
76
+ * [ System.Buffers.Text.Base64Url ] ( https://learn.microsoft.com/dotnet/api/system.buffers.text.base64url )
77
77
78
78
## Feedback & Contributing
79
79
You can’t perform that action at this time.
0 commit comments