Skip to content

IJsonDocument.AppendLocalElementRowsRebased Method

Definition

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

AppendLocalElementRowsRebased(int, MetadataDb, int)

Appends the element's complete row run to the given metadata database with every row's location rebased by locationDelta (property-map indexes normalized to plain lengths) — the row-copy half of the contiguous-element blit. Valid only after TryGetContiguousLocalElement returned true for the same index.

public abstract int AppendLocalElementRowsRebased(int index, ref MetadataDb db, int locationDelta)

Parameters

Name Type Description
index int The index of the element.
db MetadataDb The destination metadata database.
locationDelta int The delta to add to each row's text location (destination text position minus the source segment offset).

Returns

int

The number of rows appended.

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