IMutableJsonDocument.EscapeAndStoreRawStringValue Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| EscapeAndStoreRawStringValue(ReadOnlySpan<char>, ref bool) | Escapes and stores a raw string value in the document. |
| EscapeAndStoreRawStringValue(ReadOnlySpan<byte>, ref bool) | Escapes and stores a raw string value in the document. |
EscapeAndStoreRawStringValue(ReadOnlySpan<char>, ref bool)
Source: IMutableJsonDocument.cs
Escapes and stores a raw string value in the document.
public abstract int EscapeAndStoreRawStringValue(ReadOnlySpan<char> value, ref bool requiredEscaping)
Parameters
| Name | Type | Description |
|---|---|---|
value |
ReadOnlySpan<char> |
The string value to escape and store. |
requiredEscaping |
ref bool |
Set to true if escaping was required. |
Returns
The index of the stored value.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
EscapeAndStoreRawStringValue(ReadOnlySpan<byte>, ref bool)
Source: IMutableJsonDocument.cs
Escapes and stores a raw string value in the document.
public abstract int EscapeAndStoreRawStringValue(ReadOnlySpan<byte> value, ref bool requiredEscaping)
Parameters
| Name | Type | Description |
|---|---|---|
value |
ReadOnlySpan<byte> |
The UTF-8 string value to escape and store. |
requiredEscaping |
ref bool |
Set to true if escaping was required. |
Returns
The index of the stored 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