BigNumber.TryFormatUtf8Optimized Method
Definition
Namespace: Corvus.Numerics
Assembly: Corvus.Text.Json.dll
Source: BigNumber.OptimizedFormatting.cs
TryFormatUtf8Optimized(Span<byte>, ref int, ReadOnlySpan<char>, IFormatProvider)
Tries to format this instance into the provided UTF-8 span with zero allocations.
public bool TryFormatUtf8Optimized(Span<byte> utf8Destination, ref int bytesWritten, ReadOnlySpan<char> format, IFormatProvider provider)
Parameters
| Name | Type | Description |
|---|---|---|
utf8Destination |
Span<byte> |
The destination span. |
bytesWritten |
ref int |
The number of bytes written. |
format |
ReadOnlySpan<char> |
The format string. |
provider |
IFormatProvider |
The format provider. |
Returns
true if formatting succeeded; otherwise, false.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue