JsonDocument.StorePrebakedValue Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: JsonDocument.cs
StorePrebakedValue(ReadOnlySpan<byte>)
Stores a pre-baked dynamic value in the value buffer and returns its offset. The value must contain the complete encoded representation including the 4-byte header, as produced by the code generator for known property names.
public int StorePrebakedValue(ReadOnlySpan<byte> prebakedValue)
Parameters
| Name | Type | Description |
|---|---|---|
prebakedValue |
ReadOnlySpan<byte> |
The complete pre-baked value including header and payload. |
Returns
The offset of the stored value in the value buffer.
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