IJsonDocument.WriteElementToMetadataDb Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IJsonDocument.cs
WriteElementToMetadataDb(int, JsonWorkspace, ref MetadataDb, int)
Writes the element at the given index into the specified metadata database at a specific position, creating external reference rows. This is the positional variant of AppendElementToMetadataDb.
public abstract int WriteElementToMetadataDb(int index, JsonWorkspace workspace, ref MetadataDb db, int writePosition)
Parameters
| Name | Type | Description |
|---|---|---|
index |
int |
The index of the element in this document. |
workspace |
JsonWorkspace |
The JSON workspace for resolving document indices. |
db |
ref MetadataDb |
The target metadata database (must already have a gap at writePosition). |
writePosition |
int |
The byte position in db at which to start writing. |
Returns
The number of rows written.
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