Skip to content

JsonDocumentBuilder<T>.Restore Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonDocumentBuilder.cs

Restore(JsonDocumentBuilderSnapshot<T>)

Restores this builder to the state captured in snapshot. The existing backing buffers are reused (they can only grow, never shrink), so this is a pure memcpy with no allocations.

public JsonDocumentBuilder<T> Restore(JsonDocumentBuilderSnapshot<T> snapshot)

Parameters

Name Type Description
snapshot JsonDocumentBuilderSnapshot<T> The snapshot to restore from.

Returns

JsonDocumentBuilder<T>

This builder instance.

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