FixedJsonValueDocument<T>.ForNumber Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: FixedJsonValueDocument.cs
ForNumber(ReadOnlyMemory<byte>)
Creates a FixedJsonValueDocument for a number value, using the pool.
public static FixedJsonValueDocument<T> ForNumber(ReadOnlyMemory<byte> rawUtf8Number)
Parameters
| Name | Type | Description |
|---|---|---|
rawUtf8Number |
ReadOnlyMemory<byte> |
The raw UTF-8 number bytes (unquoted). |
Returns
A pooled document instance wrapping the number value.
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