Skip to content

FixedJsonValueDocument<T>.ForString Method

Definition

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

ForString(ReadOnlyMemory<byte>)

Creates a FixedJsonValueDocument for a string value, using the pool.

public static FixedJsonValueDocument<T> ForString(ReadOnlyMemory<byte> rawQuotedUtf8String)

Parameters

Name Type Description
rawQuotedUtf8String ReadOnlyMemory<byte> The raw UTF-8 string bytes (including surrounding quotes).

Returns

FixedJsonValueDocument<T>

A pooled document instance wrapping the string 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