Skip to content

Commit

Permalink
trim comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Nuon authored Aug 26, 2024
1 parent 28c1dd8 commit c0a09a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fast Base64 encoding functions.
string base64 = "SGVsbG8sIFdvcmxkIQ==";
byte[] buffer = new byte[SimdBase64.Base64.MaximalBinaryLengthFromBase64(base64.AsSpan())];
int bytesConsumed; // gives you the number of characters consumed
int bytesWritten; // gives you the
int bytesWritten;
var result = SimdBase64.Base64.DecodeFromBase64(base64.AsSpan(), buffer, out bytesConsumed, out bytesWritten, false); // false is for regular base64, true for base64url
// result == OperationStatus.Done
// Encoding.UTF8.GetString(buffer.AsSpan().Slice(0, bytesWritten)) == "Hello, World!"
Expand Down

0 comments on commit c0a09a1

Please sign in to comment.