FixedJsonValueDocument<T>.ForBooleanFromSpan Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: FixedJsonValueDocument.cs
ForBooleanFromSpan(ReadOnlySpan<char>)
Creates a FixedJsonValueDocument for a boolean value from a char span, copying the data into the document's internal buffer (zero heap allocation).
public static FixedJsonValueDocument<T> ForBooleanFromSpan(ReadOnlySpan<char> chars)
Parameters
| Name | Type | Description |
|---|---|---|
chars |
ReadOnlySpan<char> |
The raw boolean chars (true or false). |
Returns
A pooled document instance wrapping the boolean 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