Skip to content

UnescapedUtf8JsonString.TakeOwnership Method

Definition

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

TakeOwnership(ref byte[])

Take ownership of the Shared bytes, if any.

public ReadOnlyMemory<byte> TakeOwnership(ref byte[] extraRentedArrayPoolBytes)

Parameters

Name Type Description
extraRentedArrayPoolBytes ref byte[] The rented bytes, or null if there are no rented bytes.

Returns

ReadOnlyMemory<byte>

The UTF-8 memory representing the rented bytes.

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