Skip to content

IMutableJsonDocument.OverwriteSimpleValue Method

Definition

Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IMutableJsonDocument.cs

OverwriteSimpleValue(int, int, int, int, JsonTokenType, int, int)

Overwrites a range with a single simple value row directly, bypassing ComplexValueBuilder.

public abstract void OverwriteSimpleValue(int complexObjectStartIndex, int startIndex, int endIndex, int memberCountToReplace, JsonTokenType tokenType, int location, int sizeOrLength)

Parameters

Name Type Description
complexObjectStartIndex int The start index of the complex object.
startIndex int The start index of the range to overwrite.
endIndex int The end index of the range to overwrite.
memberCountToReplace int The number of members to replace.
tokenType JsonTokenType The token type of the replacement value.
location int The value location in the document's backing store.
sizeOrLength int The size/length/unescaping flag for the value row.

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