Skip to content

UnescapedUtf16JsonString.TakeOwnership Method

Definition

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

TakeOwnership(ref char[])

Take ownership of the Shared characters, if any.

public ReadOnlyMemory<char> TakeOwnership(ref char[] extraRentedArrayPoolChars)

Parameters

Name Type Description
extraRentedArrayPoolChars ref char[] The rented characters, or null if there are no rented characters.

Returns

ReadOnlyMemory<char>

The UTF-16 memory representing the rented characters.

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